Prev: 41396 Up: Map Next: 41426
41416: Test Flag
Tests one bit of the flags at Flags_GameStates.
Input
A Bit index
Output
F The zero flag is set when the bit is clear
A The flag byte merged with the bit mask
TestFlag 41416 PUSH HL Stash HL on the stack.
41417 LD HL,41096 Use the game state flags at Flags_GameStates.
41420 CALL BuildFlagMask Call BuildFlagMask to find the flag byte and the mask for this flag.
41423 AND (HL) Test the flag; the zero flag is set when it is clear.
41424 POP HL Restore HL from the stack.
41425 RET Return.
Prev: 41396 Up: Map Next: 41426