![]() |
Routines |
| Prev: 25452 | Up: Map | Next: 25584 |
|
Used by the routine at GameMenu.
Prints one line of the game selection menu. This works in the same way as PrintStringColour, except that the text is pointed to by DE' and the screen position is in HL', and the attribute is not part of the string, it is taken from Current_MenuAttribute.
|
||||||||||||||
| MenuWriteText | 25568 | PUSH HL | Stash the position on the stack. | |||||||||||
| 25569 | CALL ScreenAddress | Convert the position to a screen address using ScreenAddress. | ||||||||||||
| 25572 | LD A,(24356) | Fetch the menu attribute byte from Current_MenuAttribute. | ||||||||||||
| 25575 | EX AF,AF' | Switch to the shadow AF register. | ||||||||||||
| 25576 | EXX | Switch to the normal registers. | ||||||||||||
| 25577 | POP HL | Restore the position from the stack. | ||||||||||||
| 25578 | CALL AttributeAddress | Convert the position to an attribute address using AttributeAddress. | ||||||||||||
| 25581 | JP PrintString_Loop | Jump to PrintString_Loop to print the text. | ||||||||||||
|
View the equivalent code in;
|
||||||||||||||
| Prev: 25452 | Up: Map | Next: 25584 |