![]() |
Routines |
| Prev: AC1A | Up: Map | Next: AC35 |
|
Used by the routines at PrintStringAndANewline, PrintInputPrompt, HandlerUserPressedDELETE, HandlerDisplayRoomExits, ActionExamineItem, Messaging_YouHaveScored_Print and HandlerPrintCarrying.
Print an FF-terminated string.
|
||||||||
| PrintString | AC28 | CALL SwitchToNormalScreenOutput | Call SwitchToNormalScreenOutput to switch to the normal screen output. | |||||
|
Just keep looping and printing the fetched character until the termination byte is reached (FF).
|
||||||||
| PrintString_Loop | AC2B | LD A,(HL) | Load a character from the string pointer into A. | |||||
| AC2C | INC HL | Move the string pointer to the next character. | ||||||
| AC2D | CP $FF | Return if the string termination character (FF) has been reached. | ||||||
| AC2F | RET Z | |||||||
| AC30 | CALL PrintCharacter | Call PrintCharacter to print the character. | ||||||
| AC33 | JR PrintString_Loop | Print the next character. | ||||||
|
View the equivalent code in;
|
||||||||
| Prev: AC1A | Up: Map | Next: AC35 |