Prev: AB2F Up: Map Next: AB9D
AB48: Routine at AB48
Used by the routine at A1AA.
AB48 XOR A Write 00 to 5E69.
AB49 LD ($5E69),A
AB4C LD A,($5E7B)
AB4F INC A
AB50 LD ($5E7B),A
AB53 CALL $B8F2 Call B8F2.
AB56 LD IX,$AA4B IX=AA4B.
AB5A LD B,$10 B=10.
AB5C PUSH BC Stash BC on the stack.
AB5D CALL $AB78 Call AB78.
AB60 LD BC,$0005 BC=0005.
AB63 ADD IX,BC
AB65 POP BC
AB66 DJNZ $AB5C
AB68 LD A,($5E69)
AB6B AND A
AB6C JR NZ,$AB48
AB6E RET Return.
AB6F LD A,($5E6A)
AB72 CP (IX+$01)
AB75 RET Z
AB76 JR $AB7F
AB78 LD A,(IX+$00)
AB7B CP $80
AB7D JR Z,$AB6F
AB7F LD A,(IX+$00)
AB82 ADD A,(IX+$02)
AB85 LD L,A
AB86 LD A,(IX+$01)
AB89 ADD A,(IX+$03)
AB8C LD H,A
AB8D LD A,L
AB8E CP $80
AB90 JR Z,$AB95
AB92 JP $A9A1
AB95 LD A,($5E6A)
AB98 CP H
AB99 RET Z
AB9A JP $A9A1
Prev: AB2F Up: Map Next: AB9D