Prev: 42359 Up: Map Next: 42386
42373: Print String
Standard printing loop, which prints the fetched character byte and loops until the termination byte is reached (255).
Input
HL Pointer to string to be printed
PrintString 42373 CALL SwitchNormalScreenOutput Call SwitchNormalScreenOutput.
Just keep looping and printing the fetched character until the termination byte is reached (255).
PrintString_Loop 42376 LD A,(HL) Load a character from the string pointer into A.
42377 INC HL Move the string pointer to the next character.
42378 CP 255 Return if the string termination character (255) has been reached.
42380 RET Z
42381 CALL PrintCharacter Call PrintCharacter.
42384 JR PrintString_Loop Jump to PrintString_Loop.
View the equivalent code in The Jewels Of Babylon.
Prev: 42359 Up: Map Next: 42386