Prev: BAAA Up: Map Next: BAE5
BABD: Hit a lift button
Used by the routine at BA3B.
BABD LD A,B
BABE AND $07
BAC0 LD L,A
BAC1 LD H,$00
BAC3 PUSH DE
BAC4 LD DE,$AA09
BAC7 ADD HL,DE
BAC8 LD A,($A43A)
BACB CP (HL)
BACC JR Z,$BAE3
BACE LD A,(HL)
BACF LD ($A43A),A
BAD2 EX AF,AF'
BAD3 PUSH AF
BAD4 PUSH BC
BAD5 LD A,$40
BAD7 LD BC,$60DD
BADA LD HL,$A091
BADD CALL $BF1B
BAE0 POP BC
BAE1 POP AF
BAE2 EX AF,AF'
BAE3 POP DE
BAE4 RET
Prev: BAAA Up: Map Next: BAE5