Prev: AAB2 Up: Map Next: AB09
AADD: Routine at AADD
AADD LD A,(IY+$0A) If IY+0A is 98 jump to AAF9.
AAE0 CP $98
AAE2 JR Z,$AAF9
AAE4 LD A,(IY+$0F) If the current room (IY+0F) is not "The Sewer" (1F) jump to AAF9.
AAE7 CP $1F
AAE9 JR NZ,$AAF9
AAEB LD A,(IY+$05) If IY+05 is higher than 78 jump to AAF9.
AAEE CP $78
AAF0 JR C,$AAF9
AAF2 LD (IY+$3C),$FF Write FF to IY+3C.
AAF6 JP $B288 Jump to B288.
AAF9 LD (IY+$3C),$01 Write 01 to IY+3C.
AAFD CALL $B288 Call B288.
AB00 LD A,(IY+$05) If IY+05 is F0 then jump to AE5D.
AB03 CP $F0
AB05 JP Z,$AE5D
AB08 RET Return.
Prev: AAB2 Up: Map Next: AB09