Prev: A1D2 Up: Map Next: A1E9
A1DD: Clear Flag
Used by the routine at Action_ClearFlag.
Clears one bit of the flags at Flags_GameStates.
Input
A Bit index
ClearFlag A1DD PUSH HL Stash HL on the stack.
A1DE LD HL,$A088 Use the game state flags at Flags_GameStates.
A1E1 CALL BuildFlagMask Call BuildFlagMask to find the flag byte and the mask for this flag.
A1E4 CPL Flip the mask so the matching flag bit can be cleared.
A1E5 AND (HL) Clear this flag in its flag byte.
A1E6 LD (HL),A
A1E7 POP HL Restore HL from the stack.
A1E8 RET Return.
Prev: A1D2 Up: Map Next: A1E9