Prev: 49600 Up: Map Next: 49623
49611: Print String
Prints each character of a bit-7 terminated string.
Input
HL Pointer to the string data
PrintString 49611 LD A,(HL) Read the next character of the string.
Strip off the termination bit to leave only the ASCII value.
49612 AND %01111111 Strip the end-of-string marker (bit 7).
49614 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.
49617 BIT 7,(HL) See whether this character ends the string.
49619 RET NZ Return if that marker is set.
49620 INC HL Move to the next byte in the string.
49621 JR PrintString Jump back to PrintString to print the next character of the string.
Prev: 49600 Up: Map Next: 49623