![]() |
Routines |
| Prev: 44058 | Up: Map | Next: 44085 |
|
Used by the routines at PrintStringAndANewline, PrintInputPrompt, HandlerUserPressedDELETE, HandlerDisplayRoomExits, ActionExamineItem, Messaging_YouHaveScored_Print and HandlerPrintCarrying.
Print an 255-terminated string.
|
||||||||
| PrintString | 44072 | 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 (255).
|
||||||||
| PrintString_Loop | 44075 | LD A,(HL) | Load a character from the string pointer into A. | |||||
| 44076 | INC HL | Move the string pointer to the next character. | ||||||
| 44077 | CP 255 | Return if the string termination character (255) has been reached. | ||||||
| 44079 | RET Z | |||||||
| 44080 | CALL PrintCharacter | Call PrintCharacter to print the character. | ||||||
| 44083 | JR PrintString_Loop | Print the next character. | ||||||
|
View the equivalent code in;
|
||||||||
| Prev: 44058 | Up: Map | Next: 44085 |