![]() |
Routines |
| Prev: 5F6C | Up: Map | Next: 5FA7 |
|
Prints a line of text and sets the attributes for it. The last character of the text has bit 7 set. The attribute is held at Current_MenuAttribute.
|
||||||||||||||
| MenuWriteText | 5F97 | PUSH HL | Stash the text position on the stack. | |||||||||||
| 5F98 | CALL ScreenAddress | Convert the text position to a screen address using ScreenAddress. | ||||||||||||
| 5F9B | LD A,($5E3F) | Fetch the colour of the line from Current_MenuAttribute. | ||||||||||||
| 5F9E | EX AF,AF' | Hold the colour in A' ready for the string printer. | ||||||||||||
| 5F9F | EXX | Switch to the shadow registers. | ||||||||||||
| 5FA0 | POP HL | Restore the text position from the stack. | ||||||||||||
| 5FA1 | CALL AttributeAddress | Convert the text position to an attribute address using AttributeAddress. | ||||||||||||
| 5FA4 | JP PrintString_Loop | Jump to PrintString_Loop to print the text and set the attributes. | ||||||||||||
|
View the equivalent code in;
|
||||||||||||||
| Prev: 5F6C | Up: Map | Next: 5FA7 |