Prev: BA3B Up: Map Next: BAAA
BA8B: Hit both task boxes, change the state of the game
Used by the routine at B2D2.
Input
HL Points to the ID of the effect to trigger
BA8B LD C,(HL)
This entry point is used by the routine at BAAA.
BA8C LD A,C
BA8D INC HL
BA8E AND $3F
BA90 LD E,A
BA91 LD D,$00
BA93 LD A,(HL)
BA94 INC HL
BA95 PUSH HL
BA96 LD HL,$7DC0
BA99 ADD HL,DE
BA9A BIT 6,C
BA9C JR Z,$BAA1
BA9E OR (HL)
BA9F JR $BAA3
BAA1 CPL
BAA2 AND (HL)
BAA3 LD (HL),A
BAA4 POP HL
BAA5 BIT 7,C
BAA7 JR NZ,$BA8B
BAA9 RET
Prev: BA3B Up: Map Next: BAAA