![]() |
Routines |
| Prev: BD6A | Up: Map | Next: BD99 |
|
Used by the routine at PrintTextList.
Prints a string using the ROM character set. The colour of the text is taken from the variable that holds the attribute.
|
||||||||||||||
| PrintText | BD82 | PUSH HL | Use the ROM character set. | |||||||||||
| BD83 | LD HL,($5C36) | |||||||||||||
| BD86 | LD ($9618),HL | |||||||||||||
| BD89 | POP HL | |||||||||||||
| PrintText_Position | BD8A | PUSH HL | Find the address of the display file using ScreenAddress. | |||||||||||
| BD8B | CALL ScreenAddress | |||||||||||||
| BD8E | LD A,($9628) | Fetch the attribute and keep it in A'. | ||||||||||||
| BD91 | EX AF,AF' | |||||||||||||
| BD92 | EXX | Switch to the alternate registers and find the address of the attributes using AttributeAddress. | ||||||||||||
| BD93 | POP HL | |||||||||||||
| BD94 | CALL AttributeAddress | |||||||||||||
| BD97 | JR PrintStringColour_Loop | Jump to print the text. | ||||||||||||
| Prev: BD6A | Up: Map | Next: BD99 |