![]() |
Routines |
Prev: BA96 | Up: Map | Next: BAB1 |
Used by the routines at PrintStringAndNewline, PrintInputPrompt, UserInput_Delete, Handler_RoomExits, Action_ExamineItem, Action_Take and Action_DropThrow.
Standard printing loop, which prints the fetched character byte and loops until the termination byte is reached (FF).
|
||||||||
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 |