Prev: A577 Up: Map Next: A592
A585: Print String
Standard printing loop, which prints the fetched character byte and loops until the termination byte is reached (FF).
Input
HL Pointer to string to be printed
PrintString A585 CALL SwitchNormalScreenOutput Call SwitchNormalScreenOutput.
Just keep looping and printing the fetched character until the termination byte is reached (FF).
PrintString_Loop A588 LD A,(HL) Load a character from the string pointer into A.
A589 INC HL Move the string pointer to the next character.
A58A CP $FF Return if the string termination character (FF) has been reached.
A58C RET Z
A58D CALL PrintCharacter Call PrintCharacter.
A590 JR PrintString_Loop Jump to PrintString_Loop.
View the equivalent code in The Jewels Of Babylon.
Prev: A577 Up: Map Next: A592