![]() |
Routines |
| Prev: 27071 | Up: Map | Next: 27099 |
|
Exchanges flag B with the flag addressed by A.
|
||||||||||
| SwapFlags | 27085 | CALL FlagAddress | Call FlagAddress. | |||||||
| 27088 | PUSH HL | Stash that pointer on the stack. | ||||||||
| 27089 | LD C,(HL) | Keep the first flag's value. | ||||||||
| 27090 | LD B,A | Point at the flag selected by A. | ||||||||
| 27091 | CALL FlagAddress | |||||||||
| 27094 | LD A,(HL) | Exchange the two flag bytes. | ||||||||
| 27095 | LD (HL),C | |||||||||
| 27096 | POP HL | |||||||||
| 27097 | LD (HL),A | |||||||||
| 27098 | RET | Return. | ||||||||
| Prev: 27071 | Up: Map | Next: 27099 |