AC06: Routine at AC06
AC06 |
LD A,(IY+$05) |
AC09 |
OR A |
AC0A |
JR Z,$AC15 |
AC0C |
CP $F0 |
AC0E |
JR Z,$AC15 |
AC10 |
CALL Controls_ExitScreen |
AC13 |
OR A |
AC14 |
RET Z |
AC15 |
LD A,(IY+$0F) |
AC18 |
CALL $AC69 |
AC1B |
EX DE,HL |
AC1C |
LD A,(DE) |
AC1D |
CP $FF |
AC1F |
RET Z |
AC20 |
LD B,A |
AC21 |
INC DE |
AC22 |
LD A,(DE) |
AC23 |
INC DE |
AC24 |
INC DE |
AC25 |
CALL $AC5F |
AC28 |
LD A,(HL) |
AC29 |
SUB (IY+$05) |
AC2C |
SUB $08 |
AC2E |
CP $F0 |
AC30 |
JR C,$AC1C |
AC32 |
INC HL |
AC33 |
LD A,(HL) |
AC34 |
CP (IY+$0A) |
AC37 |
JR NZ,$AC1C |
AC39 |
DEC DE |
AC3A |
LD (IY+$0F),B |
AC3D |
LD A,(DE) |
AC3E |
CALL $AC5F |
AC41 |
LD A,(HL) |
AC42 |
OR A |
AC43 |
JR NZ,$AC47 |
AC45 |
LD A,$02 |
AC47 |
CP $F0 |
AC49 |
JR NZ,$AC4D |
AC4B |
LD A,$EE |
AC4D |
LD (IY+$05),A |
AC50 |
INC HL |
AC51 |
LD A,(HL) |
AC52 |
LD (IY+$0A),A |
AC55 |
CALL DrawRoom |
AC58 |
CALL Controls_ExitScreen |
AC5B |
OR A |
AC5C |
JR NZ,$AC58 |
AC5E |
RET |
AC5F |
ADD A,A |
AC60 |
LD HL,$AF10 |
AC63 |
ADD A,L |
AC64 |
JR NC,$AC67 |
AC66 |
INC H |
AC67 |
LD L,A |
AC68 |
RET |