5F89: Print objects on the playing field
5F89 |
LD IX,$6D73 |
5F8D |
LD DE,$FFE0 |
5F90 |
LD HL,$7F81 |
5F93 |
LD BC,$1E01 |
5F96 |
PUSH IX |
5F98 |
PUSH DE |
5F99 |
PUSH HL |
5F9A |
PUSH BC |
5F9B |
PUSH BC |
5F9C |
LD C,$01 |
5F9E |
LD A,($5DEC) |
5FA1 |
LD B,A |
5FA2 |
DEC BC |
5FA3 |
LD A,B |
5FA4 |
OR C |
5FA5 |
JR NZ,$5FA2 |
5FA7 |
POP BC |
5FA8 |
LD B,$18 |
5FAA |
LD A,(HL) |
5FAB |
CP $20 |
5FAD |
JR NC,$5FB8 |
5FAF |
ADD HL,DE |
5FB0 |
INC IX |
5FB2 |
INC IX |
5FB4 |
INC IX |
5FB6 |
DJNZ $5FAA |
5FB8 |
CP $40 |
5FBA |
JR Z,$5FE0 |
5FBC |
LD A,(IX+$00) |
5FBF |
CP $00 |
5FC1 |
JR Z,$5FD8 |
5FC3 |
LD L,(IX+$01) |
5FC6 |
LD H,(IX+$02) |
5FC9 |
PUSH BC |
5FCA |
LD BC,$0036 |
5FCD |
LD DE,$7C27 |
5FD0 |
LDIR |
5FD2 |
POP BC |
5FD3 |
LD DE,$7BFA |
5FD6 |
JR $5FE6 |
5FD8 |
LD E,(IX+$01) |
5FDB |
LD D,(IX+$02) |
5FDE |
JR $5FE6 |
5FE0 |
LD E,(IX-$08) |
5FE3 |
LD D,(IX-$07) |
5FE6 |
LD B,$12 |
5FE8 |
LD IX,$64F4 |
5FEC |
LD A,C |
5FED |
CP $0D |
5FEF |
JR C,$5FF7 |
5FF1 |
CP $14 |
5FF3 |
JR NC,$5FF7 |
5FF5 |
LD B,$10 |
5FF7 |
PUSH BC |
5FF8 |
LD A,C |
5FF9 |
ADD A,(IX+$00) |
5FFC |
LD L,A |
5FFD |
LD H,(IX+$02) |
6000 |
LD A,(DE) |
6001 |
LD (HL),A |
6002 |
INC DE |
6003 |
LD H,(IX+$01) |
6006 |
LD B,$08 |
6008 |
LD A,(DE) |
6009 |
LD (HL),A |
600A |
INC H |
600B |
INC DE |
600C |
DJNZ $6008 |
600E |
EX AF,AF' |
600F |
XOR $10 |
6011 |
OUT ($FE),A |
6013 |
EX AF,AF' |
6014 |
POP BC |
6015 |
INC IX |
6017 |
INC IX |
6019 |
INC IX |
601B |
DJNZ $5FF7 |
601D |
POP BC |
601E |
PUSH BC |
601F |
LD A,($5DC6) |
6022 |
CP C |
6023 |
JR NZ,$6033 |
6025 |
LD A,($5DC4) |
6028 |
LD ($5DC1),A |
602B |
LD A,$06 |
602D |
LD ($5DC0),A |
6030 |
CALL $6150 |
6033 |
POP BC |
6034 |
PUSH BC |
6035 |
LD A,($5DC7) |
6038 |
CP C |
6039 |
JR NZ,$6049 |
603B |
LD A,($5DC5) |
603E |
LD ($5DC1),A |
6041 |
LD A,$01 |
6043 |
LD ($5DC0),A |
6046 |
CALL $6150 |
6049 |
LD A,($5DCB) |
604C |
BIT 1,A |
604E |
CALL NZ,$6453 |
6051 |
POP BC |
6052 |
PUSH BC |
6053 |
LD A,($5DCB) |
6056 |
BIT 0,A |
6058 |
CALL NZ,$63FC |
605B |
POP BC |
605C |
PUSH BC |
605D |
LD A,($5DD7) |
6060 |
BIT 0,A |
6062 |
CALL NZ,$6802 |
6065 |
POP BC |
6066 |
POP HL |
6067 |
POP DE |
6068 |
POP IX |
606A |
INC HL |
606B |
INC C |
606C |
XOR A |
606D |
DEC B |
606E |
OR B |
606F |
JP NZ,$5F96 |
6072 |
RET |