Prev: AA49 Up: Map Next: AAE4
AABA: Routine at AABA
Used by the routine at AB19.
AABA LD HL,$8267
AABD LD B,$00
AABF INC HL
AAC0 INC HL
AAC1 INC B
AAC2 LD A,B
AAC3 CP $06
AAC5 JR Z,$AACB
AAC7 LD A,(HL)
AAC8 AND A
AAC9 JR NZ,$AABF
AACB DEC HL
AACC DEC HL
AACD DEC B
AACE INC B
AACF LD D,(HL)
AAD0 DEC HL
AAD1 LD E,(HL)
AAD2 DEC HL
AAD3 LD A,(HL)
AAD4 DEC HL
AAD5 CP D
AAD6 JR NZ,$AADF
AAD8 LD A,(HL)
AAD9 CP E
AADA JR NZ,$AADF
AADC LD B,$01
AADE RET
AADF DJNZ $AAD2
AAE1 LD B,$00
AAE3 RET
Prev: AA49 Up: Map Next: AAE4