Prev: 44058 Up: Map Next: 44085
44072: Print String
Input
HL Pointer to string to be printed
PrintString 44072 CALL SwitchToNormalScreenOutput Call SwitchToNormalScreenOutput to switch to the normal screen output.
Just keep looping and printing the fetched character until the termination byte is reached (255).
PrintString_Loop 44075 LD A,(HL) Load a character from the string pointer into A.
44076 INC HL Move the string pointer to the next character.
44077 CP 255 Return if the string termination character (255) has been reached.
44079 RET Z
44080 CALL PrintCharacter Call PrintCharacter to print the character.
44083 JR PrintString_Loop Print the next character.
Prev: 44058 Up: Map Next: 44085