![]() |
Routines |
| Prev: A1B4 | Up: Map | Next: A1D2 |
|
Tests one bit of the flags at Flags_GameStates.
|
||||||||||||||
| TestFlag | A1C8 | PUSH HL | Stash HL on the stack. | |||||||||||
| A1C9 | LD HL,$A088 | Use the game state flags at Flags_GameStates. | ||||||||||||
| A1CC | CALL BuildFlagMask | Call BuildFlagMask to find the flag byte and the mask for this flag. | ||||||||||||
| A1CF | AND (HL) | Test the flag; the zero flag is set when it is clear. | ||||||||||||
| A1D0 | POP HL | Restore HL from the stack. | ||||||||||||
| A1D1 | RET | Return. | ||||||||||||
| Prev: A1B4 | Up: Map | Next: A1D2 |