![]() |
Routines |
| Prev: 48396 | Up: Map | Next: 48546 |
|
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 | 48521 | LD HL,48547 | Point HL at MenuColours_ControlMethods. | |
| 48524 | LD A,(23460) | Fetch ControlMethod. | ||
| 48527 | RRCA | Move the method to bits 0 and 1. | ||
| 48528 | AND %00000011 | Keep only bits 0 and 1. | ||
| 48530 | LD B,4 | Set a counter of 4 lines. | ||
| 48532 | CALL SetFlashingAttribute | Call SetFlashingAttribute. | ||
|
Flash directional control if it is on.
|
||||
| 48535 | RES 7,(HL) | Reset bit 7 of the attribute. | ||
| 48537 | LD A,(23460) | Fetch ControlMethod. | ||
| 48540 | AND %00001000 | Keep only bit 3. | ||
| 48542 | RET Z | Return if it is off. | ||
| 48543 | SET 7,(HL) | Set bit 7 of the attribute. | ||
| 48545 | RET | Return. | ||
|
View the equivalent code in;
|
||||
| Prev: 48396 | Up: Map | Next: 48546 |