Prev: 47766 Up: Map Next: 47793
47780: 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 47780 CALL SwitchNormalScreenOutput Call SwitchNormalScreenOutput.
Just keep looping and printing the fetched character until the termination byte is reached (255).
PrintString_Loop 47783 LD A,(HL) Load a character from the string pointer into A.
47784 INC HL Move the string pointer to the next character.
47785 CP 255 Return if the string termination character (255) has been reached.
47787 RET Z
47788 CALL PrintCharacter Call PrintCharacter.
47791 JR PrintString_Loop Jump to PrintString_Loop.
View the equivalent code in Warlord.
Prev: 47766 Up: Map Next: 47793