ZXNet эхоконференция «code.zx»
тема: irc-compo 1: entries
от: Arseniy Astapenko
кому: All
дата: 14 May 1999
Hello All!
=== Cut ===
Все конкурсные процедуры (in random order)
StarSoft:
Input : D:=X; A:=Y
Output: H=high byte of address, A=low byte of address :-)
LD H,#58/4
RLCA
RLCA
RLCA
ADD A,A
RL H
ADD A,A
RL H
OR D
47 TAKTS, 12 BYTES
WWW: (Final version)
Input : A=Y (0..31), L=X (0..23)
Output: AL=addr
Code Time Size
RRCA 4 1
RRCA 4 1
RRCA 4 1
LD H,A 4 1
AND E0H 7 2
OR L 4 1
LD L,A 4 1
LD A,03H 7 2
AND H 4 1
OR 58H 7 2
Total 49 13
Glip: BEST EXPLAINED !
Input : A=Y (0..23), L=X (0..31)
Output: HA=addr
Register state is after instruction is done ;)
Code Time Size CY A H L
LD H,16H 7 2 - 000YYyyy 00010110 000xxxxx
RLCA 4 1 0 00YYyyy0 00010110 000xxxxx
RLCA 4 1 0 0YYyyy00 00010110 000xxxxx
RLCA 4 1 0 YYyyy000 00010110 000xxxxx
RLA 4 1 Y Yyyy0000 00010110 000xxxxx
RL H 8 2 0 Yyyy0000 0010110Y 000xxxxx
RLA 4 1 Y yyy00000 0010110Y 000xxxxx
RL H 8 2 0 yyy00000 010110YY 000xxxxx
OR L 4 1 0 yyyxxxxx 010110YY 000xxxxx
Total 47 12
--
Sanchez:
Input : A= Y coord. - L= X coord.
Output: H= MSB of address - A= LSB of address
Corrupted : A, H, L,
RLCA 4
RLA 4
RLA 4
LD H,0x16 7
RLA 4
RL H 8
RLA 4
RL H 8
OR L 4
GRAND TOTAL 47 T
Busy: PIXX TO ATTR
Input : coords B = Y, C = X
Output: atribute address in HL
Counts: 14 bytes, 68 takts
*** ld l,b
ld h,#58/4
add hl,hl
add hl,hl
*** ld a,c
rrca
rrca
rrca
xor l
and #1F
xor l
*** ld l,a
56t
Hacker Scorpion:
LD A,E
RRA
RRA
RRA
AND #3F
OR #58
LD H,A
LD A,E
AND #07
OR A <------- ????????? May Bea RRA ?
RRA
RRA
RRA
RRA
ADD A,D
65t
Depredator:
a,c input
rrca 1 4
rrca 1 4
rrca 1 4
ld h,a 1 4
and %11100000 2 7
or c 1 4
ld e,a 1 4
ld a,h 1 4
and %00000011 2 7
or #58 2 7
a,e output
49t
Cja:
a = x coord
e = y coord
T-States: 67
ld h,$16
rlca
rl h
rlca
rl h
rlca
rr d
rlca
rr d
rlca
rr d
Falco:
input : a=y l=x
output : al = addr
t-states : 49
rra
rra
rra
ld h,a
and a,224
add a,l
ld l,a
ld a,h
and a,3
or #58
Strider/SAROS :
HL input ( A - row, L - column )
T-States : 47
LD A,H ;4
LD H,#16 ;7
ADD A,A ;4
RLA ;4
RLA ;4
RLA ;4
RL H ;8
RLA ;4
RL H ;8
ADD A,L ;4
Mbr^x7m a.k.a. Mac Buster/Magic Software/Extreme
24.03.1998 / 01.00am
=== Cut ===
C вами был
Ars^FTL
|