ADDB: Enter the final room - game over
ADDB |
LD HL,$A7C2 |
ADDE |
LD DE,$0014 |
ADE1 |
LD BC,$010D |
ADE4 |
LD IX,$7B00 |
ADE8 |
LD A,(HL) |
ADE9 |
LD (IX+$01),A |
ADEC |
AND $F0 |
ADEE |
CP $80 |
ADF0 |
JR NZ,$ADFE |
ADF2 |
LD A,(HL) |
ADF3 |
CP $81 |
ADF5 |
LD A,$00 |
ADF7 |
JR NZ,$AE1E |
ADF9 |
LD (IX+$00),$80 |
ADFD |
RET |
ADFE |
SRA A |
AE00 |
SRA A |
AE02 |
SRA A |
AE04 |
SRA A |
AE06 |
PUSH HL |
AE07 |
NEG |
AE09 |
LD L,A |
AE0A |
RLA |
AE0B |
SBC A,A |
AE0C |
LD H,A |
AE0D |
ADD HL,DE |
AE0E |
EX DE,HL |
AE0F |
PUSH BC |
AE10 |
LD HL,$1509 |
AE13 |
CALL $ADBE |
AE16 |
POP HL |
AE17 |
AND A |
AE18 |
SBC HL,BC |
AE1A |
LD A,L |
AE1B |
NEG |
AE1D |
POP HL |
AE1E |
LD (IX+$00),A |
AE21 |
INC HL |
AE22 |
INC IX |
AE24 |
INC IX |
AE26 |
JR $ADE8 |