![]() |
Routines |
| Prev: 9F76 | Up: Map | Next: A0CB |
|
Used by the routine at print_string.
For print_string, which prints strings. The character's seven bytes are at font plus seven times its code. They are copied up the screen from the bottom row (print_char_rows), or, for a double-size string, drawn twice as wide and tall by print_char_double: the JR here is the switch, its offset written by print_string ($00 or $10). In the snapshot the offset is $FE, a jump to itself, but print_string always writes it first.
|
||||||||||
| print_char | A0B1 | PUSH DE | The character's bytes | |||||||
| A0B2 | LD A,(DE) | |||||||||
| A0B3 | PUSH HL | |||||||||
| A0B4 | LD L,A | |||||||||
| A0B5 | LD H,$00 | |||||||||
| A0B7 | ADD HL,HL | |||||||||
| A0B8 | ADD HL,HL | |||||||||
| A0B9 | ADD HL,HL | |||||||||
| A0BA | LD E,A | |||||||||
| A0BB | LD D,$00 | |||||||||
| A0BD | AND A | |||||||||
| A0BE | SBC HL,DE | |||||||||
| A0C0 | LD DE,font | |||||||||
| A0C3 | ADD HL,DE | |||||||||
| A0C4 | EX DE,HL | |||||||||
| A0C5 | POP HL | Seven rows | ||||||||
| A0C6 | PUSH HL | |||||||||
| A0C7 | LD B,$07 | |||||||||
| print_char_0 | A0C9 | JR print_char_0 | Normal or double size (written by print_string) | |||||||
| Prev: 9F76 | Up: Map | Next: A0CB |