![]() |
Routines |
| Prev: 47742 | Up: Map | Next: 47892 |
|
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 | 47867 | LD HL,47893 | Point HL at MenuColours_FirstOption. | |
| 47870 | LD A,(23300) | Fetch ControlMethod. | ||
| 47873 | RRCA | Move the method to bits 0 and 1. | ||
| 47874 | AND %00000011 | Keep only bits 0 and 1. | ||
| 47876 | LD B,4 | Set a counter of 4 lines. | ||
| 47878 | CALL SetFlashingAttribute | Call SetFlashingAttribute. | ||
|
Flash directional control if it is on.
|
||||
| 47881 | RES 7,(HL) | Reset bit 7 of the attribute. | ||
| 47883 | LD A,(23300) | Fetch ControlMethod. | ||
| 47886 | AND %00001000 | Keep only bit 3. | ||
| 47888 | RET Z | Return if it is off. | ||
| 47889 | SET 7,(HL) | Set bit 7 of the attribute. | ||
| 47891 | RET | Return. | ||
|
View the equivalent code in;
|
||||
| Prev: 47742 | Up: Map | Next: 47892 |