![]() |
Routines |
| Prev: 51402 | Up: Map | Next: 51554 |
|
Used by the routine at GameMenu.
Makes the line of the menu for the selected control method flash, and the line for directional control if that is on.
|
||||
|
Flash the chosen control method.
|
||||
| FlashMenuOptions | 51529 | LD HL,51555 | Point HL at MenuLineAttributes_ControlMethods. | |
| 51532 | LD A,(48048) | Fetch GameOptions. | ||
| 51535 | RRCA | Move the method to bits 0 and 1. | ||
| 51536 | AND %00000011 | Keep only bits 0 and 1. | ||
| 51538 | LD B,4 | Set a counter of 4 lines. | ||
| 51540 | CALL SetFlashingAttribute | Call SetFlashingAttribute. | ||
|
Flash directional control if it is on.
|
||||
| 51543 | RES 7,(HL) | Reset bit 7 of the attribute. | ||
| 51545 | LD A,(48048) | Fetch GameOptions. | ||
| 51548 | AND %00001000 | Keep only bit 3. | ||
| 51550 | RET Z | Return if it is off. | ||
| 51551 | SET 7,(HL) | Set bit 7 of the attribute. | ||
| 51553 | RET | Return. | ||
|
View the equivalent code in;
|
||||
| Prev: 51402 | Up: Map | Next: 51554 |