Prev: BA96 Up: Map Next: BAB1
BAA4: 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 BAA4 CALL SwitchNormalScreenOutput Call SwitchNormalScreenOutput.
Just keep looping and printing the fetched character until the termination byte is reached (FF).
PrintString_Loop BAA7 LD A,(HL) Load a character from the string pointer into A.
BAA8 INC HL Move the string pointer to the next character.
BAA9 CP $FF Return if the string termination character (FF) has been reached.
BAAB RET Z
BAAC CALL PrintCharacter Call PrintCharacter.
BAAF JR PrintString_Loop Jump to PrintString_Loop.
View the equivalent code in Warlord.
Prev: BA96 Up: Map Next: BAB1