![]() |
Routines |
| Prev: 27100 | Up: Map | Next: 27192 |
|
Used by the routine at Handler_UserInput.
Print the ">" prompt.
|
||||
| PrintInputPrompt | 27164 | LD HL,20608 | The prompt is drawn in the prompt cell. | |
| 27167 | LD DE,256 | Look at the eight rows of the prompt cell. | ||
| 27170 | LD B,8 | |||
| 27172 | XOR A | |||
| PrintInputPrompt_Loop1 | 27173 | OR (HL) | Combine those rows to see whether the prompt is already visible. | |
| 27174 | ADD HL,DE | |||
| 27175 | DJNZ PrintInputPrompt_Loop1 | |||
| 27177 | OR A | The prompt cell is empty, so the prompt must be printed. | ||
| 27178 | JR Z,PrintInputPrompt_Step1 | |||
| 27180 | LD A,13 | Start the prompt on a new line. | ||
| 27182 | CALL PrintCharacter | Call PrintCharacter to print the character. | ||
| PrintInputPrompt_Step1 | 27185 | LD HL,25312 | Print > on the same line. | |
| 27188 | CALL PrintString | |||
| 27191 | RET | Return. | ||
| Prev: 27100 | Up: Map | Next: 27192 |