![]() |
Routines |
| Prev: 25224 | Up: Map | Next: 25335 |
|
Used by the routine at GameMenu.
Prints one line of the game selection menu. This is similar to PrintStringColour, but the attribute comes from Current_MenuAttribute and the text has no attribute byte. It is called with the shadow registers selected, so that HL' and DE' hold the position and the text.
|
||||||||||||||
| MenuWriteText | 25319 | PUSH HL | Stash the position (HL) on the stack. | |||||||||||
| 25320 | CALL ScreenAddress | Convert the co-ordinate to a screen address using ScreenAddress. | ||||||||||||
| 25323 | LD A,(24097) | A=the menu attribute byte from Current_MenuAttribute. | ||||||||||||
| 25326 | EX AF,AF' | Keep the attribute in the shadow AF register. | ||||||||||||
| 25327 | EXX | Switch to the shadow registers. | ||||||||||||
| 25328 | POP HL | Restore HL from the stack. | ||||||||||||
| 25329 | CALL AttributeAddress | Convert the co-ordinate to an attribute buffer address using AttributeAddress. | ||||||||||||
| 25332 | JP PrintString_Loop | Jump to PrintString_Loop to print the text and write the attributes. | ||||||||||||
|
View the equivalent code in;
|
||||||||||||||
| Prev: 25224 | Up: Map | Next: 25335 |