![]() |
Routines |
| Prev: 9052 | Up: Map | Next: 90D6 |
|
Used by the routine at Select_Game_Options.
Flashes the menu line of the chosen control method and stops the other lines from flashing. It does this by setting or resetting bit 7 (FLASH) of each of the line attributes that start at HL.
The two small routines at Clear_Flash_Attribute and Set_Flash_Attribute reset or set the bit for one line and move on to the next one. The loop is entered again at 90C8 with the zero flag set by the A decrease at Highlight_Selected_Option_Loop.
|
||||||||||||
| Highlight_Selected_Option | 90C6 | AND %00000011 | Keep only the control method bits (bits 0 and 1). | |||||||||
| 90C8 | JR Z,Highlight_Selected_Option_Flash_Line | Jump to Highlight_Selected_Option_Flash_Line if this is the line of the chosen method. | ||||||||||
| 90CA | CALL Clear_Flash_Attribute | Clear the flash bit of this line and move on to the next line. | ||||||||||
| Highlight_Selected_Option_Loop | 90CD | DEC A | Decrease the line count in A (it is zero when the chosen line is reached). | |||||||||
| 90CE | DJNZ Highlight_Selected_Option | Repeat for each of the four lines. | ||||||||||
| 90D0 | RET | Return. | ||||||||||
| Highlight_Selected_Option_Flash_Line | 90D1 | CALL Set_Flash_Attribute | Set the flash bit of this line and move on to the next line. | |||||||||
| 90D4 | JR Highlight_Selected_Option_Loop | Jump back to Highlight_Selected_Option_Loop. | ||||||||||
| Prev: 9052 | Up: Map | Next: 90D6 |