![]() |
Routines |
| Prev: 47916 | Up: Map | Next: 48049 |
|
Used by the routine at DisplayTextList.
Prints a line of text in the colour held in TextAttribute, using the ASCII font at 24968. The last character of the text has bit 7 set. Each character cell has its attribute set as well.
|
||||||||||
|
Point at the ASCII font and keep TextAttribute.
|
||||||||||
| PrintTextSingleColour | 48029 | PUSH HL | Stash the pixel position on the stack. | |||||||
| 48030 | LD HL,24968 | Point HL at 24968. | ||||||||
| 48033 | LD (23335),HL | Set FontPointer. | ||||||||
| 48036 | POP BC | Copy the pixel position to BC (using the stack). | ||||||||
| 48037 | PUSH BC | |||||||||
| 48038 | CALL CalculateBufferAddress | Call CalculateBufferAddress. | ||||||||
| 48041 | LD L,C | Copy it to HL. | ||||||||
| 48042 | LD H,B | |||||||||
| 48043 | LD A,(23318) | Fetch TextAttribute. | ||||||||
| 48046 | EX AF,AF' | Keep the colour in AF'. | ||||||||
| 48047 | JR PrintTextStandardFont_PrintLine | Jump to PrintTextStandardFont_PrintLine. | ||||||||
|
View the equivalent code in;
|
||||||||||
| Prev: 47916 | Up: Map | Next: 48049 |