![]() |
Routines |
| Prev: 54477 | Up: Map | Next: 54506 |
|
Prints a text from Font, one tile for each character. The text starts with an attribute and ends with 0.
|
|||||||||||
|
Fetch the attribute.
|
|||||||||||
| PrintText | 54487 | LD A,(DE) | Fetch the attribute, and keep it in the alternate accumulator. | ||||||||
| 54488 | INC DE | ||||||||||
| 54489 | EX AF,AF' | ||||||||||
|
Print the next character.
|
|||||||||||
| PrintText_Next | 54490 | LD A,(DE) | Return if it is the terminator. | ||||||||
| 54491 | AND A | ||||||||||
| 54492 | RET Z | ||||||||||
| 54493 | INC DE | Move on to the next character. | |||||||||
| 54494 | CALL ConvertCharacter | Call ConvertCharacter. | |||||||||
| 54497 | LD BC,36520 | Point BC at Font. | |||||||||
| 54500 | CALL DrawTile | Call DrawTile. | |||||||||
| 54503 | INC L | Move on to the next column. | |||||||||
| 54504 | JR PrintText_Next | Jump to PrintText_Next. | |||||||||
| Prev: 54477 | Up: Map | Next: 54506 |