![]()  | 
Routines | 
| Prev: 42359 | Up: Map | Next: 42386 | 
| 
 
Used by the routines at PrintStringAndNewline, PrintInputPrompt, Handler_RoomExits, Print_Cursor, Print_UserInputToScreen, Handler_UserInput, Parser_ValidateItem, Print_Scoring and Check_PlayerInventory.
 
Standard printing loop, which prints the fetched character byte and loops until the termination byte is reached (255).
 
  | 
||||||||
| PrintString | 42373 | CALL SwitchNormalScreenOutput | Call SwitchNormalScreenOutput. | |||||
| 
 
Just keep looping and printing the fetched character until the termination byte is reached (255).
 
 | 
||||||||
| PrintString_Loop | 42376 | LD A,(HL) | Load a character from the string pointer into A. | |||||
| 42377 | INC HL | Move the string pointer to the next character. | ||||||
| 42378 | CP 255 | Return if the string termination character (255) has been reached. | ||||||
| 42380 | RET Z | |||||||
| 42381 | CALL PrintCharacter | Call PrintCharacter. | ||||||
| 42384 | JR PrintString_Loop | Jump to PrintString_Loop. | ||||||
| 
 
View the equivalent code in The Jewels Of Babylon.
 
 | 
||||||||
| Prev: 42359 | Up: Map | Next: 42386 |