![]() |
Routines |
Prev: A25C | Up: Map | Next: A275 |
Used by the routines at PrintPrompt, PrintStringAndNewline, Print_Cursor, Print_UserInputToScreen and Handler_UserInput.
Standard printing loop, which prints the fetched character byte and loops until the termination byte is reached (FF).
|
||||||||
PrintString | A267 | PUSH AF | Push the character to print on the stack. | |||||
A268 | JR FetchByteToPrint | Jump to FetchByteToPrint. | ||||||
Just keep looping and printing the fetched character until the termination byte is reached (FF).
|
||||||||
PrintString_Loop | A26A | CALL PrintCharacter | Call PrintCharacter. | |||||
A26D | INC HL | Move the string pointer to the next character. | ||||||
FetchByteToPrint | A26E | LD A,(HL) | Load a character from the string pointer into A. | |||||
A26F | CP $FF | Jump back to PrintString_Loop until the string termination character (FF) has been reached. | ||||||
A271 | JR NZ,PrintString_Loop | |||||||
A273 | POP AF | Restore the character to print from the stack. | ||||||
A274 | RET | Return. | ||||||
View the equivalent code in;
|
Prev: A25C | Up: Map | Next: A275 |