![]() |
Routines |
| Prev: 48134 | Up: Map | Next: 48250 |
|
Used by the routines at PrintScoreLabel and DisplayMenu.
Prints a line of text in the colour held in TextAttribute, using the ASCII font at Font. 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 | 48230 | PUSH HL | Stash the pixel position on the stack. | |||||||||||||
| 48231 | LD HL,33237 | Point HL at 33237. | ||||||||||||||
| 48234 | LD (42802),HL | Set FontPointer. | ||||||||||||||
| 48237 | POP BC | Copy the pixel position to BC (using the stack). | ||||||||||||||
| 48238 | PUSH BC | |||||||||||||||
| 48239 | CALL CalculateBufferAddress | Call CalculateBufferAddress. | ||||||||||||||
| 48242 | LD L,C | Copy it to HL. | ||||||||||||||
| 48243 | LD H,B | |||||||||||||||
| 48244 | LD A,(42806) | Fetch TextAttribute. | ||||||||||||||
| 48247 | EX AF,AF' | Keep the colour in AF'. | ||||||||||||||
| 48248 | JR PrintText | Jump to PrintText. | ||||||||||||||
|
View the equivalent code in;
|
||||||||||||||||
| Prev: 48134 | Up: Map | Next: 48250 |