Prev: 7140 Up: Map Next: 715a
7151: Write an EOL character to the screen.
Game strings (e.g. score labels) set bit-7 on the last character to indicate it is EOL. This bit needs to be reset before displaying the character on the screen.
Input
A' Colour byte for the character.
A The EOL ASCII character to be displayed.
HL Screen address for writing the string.
HL' Attribute file address for writing the colour byte.
7151 and $7f Turn off the EOL flag: bit-7
7153 call $7115 Display font character
7156 exx
7157 ex af,af'
7158 ld (hl),a Write the colour byte
7159 ret
Prev: 7140 Up: Map Next: 715a