![]() |
Routines |
| Prev: 41426 | Up: Map | Next: 41449 |
|
Used by the routine at Action_ClearFlag.
Clears one bit of the flags at Flags_GameStates.
|
||||||||
| ClearFlag | 41437 | PUSH HL | Stash HL on the stack. | |||||
| 41438 | LD HL,41096 | Use the game state flags at Flags_GameStates. | ||||||
| 41441 | CALL BuildFlagMask | Call BuildFlagMask to find the flag byte and the mask for this flag. | ||||||
| 41444 | CPL | Flip the mask so the matching flag bit can be cleared. | ||||||
| 41445 | AND (HL) | Clear this flag in its flag byte. | ||||||
| 41446 | LD (HL),A | |||||||
| 41447 | POP HL | Restore HL from the stack. | ||||||
| 41448 | RET | Return. | ||||||
| Prev: 41426 | Up: Map | Next: 41449 |