![]() |
Routines |
| Prev: C1C0 | Up: Map | Next: C1D7 |
|
Prints each character of a bit-7 terminated string.
|
||||||||
| PrintString | C1CB | LD A,(HL) | Read the next character of the string. | |||||
|
Strip off the termination bit to leave only the ASCII value.
|
||||||||
| C1CC | AND %01111111 | Strip the end-of-string marker (bit 7). | ||||||
| C1CE | CALL PrintScreenCharacter | Call PrintScreenCharacter to print this character. | ||||||
|
The string is terminated by bit 7 being set, so check if this is the final character or not.
|
||||||||
| C1D1 | BIT 7,(HL) | See whether this character ends the string. | ||||||
| C1D3 | RET NZ | Return if that marker is set. | ||||||
| C1D4 | INC HL | Move to the next byte in the string. | ||||||
| C1D5 | JR PrintString | Jump back to PrintString to print the next character of the string. | ||||||
| Prev: C1C0 | Up: Map | Next: C1D7 |