![]() |
Routines |
| Prev: 69DC | Up: Map | Next: 6A38 |
|
Used by the routine at Handler_UserInput.
Print the ">" prompt.
|
||||
| PrintInputPrompt | 6A1C | LD HL,$5080 | The prompt is drawn in the prompt cell. | |
| 6A1F | LD DE,$0100 | Look at the eight rows of the prompt cell. | ||
| 6A22 | LD B,$08 | |||
| 6A24 | XOR A | |||
| PrintInputPrompt_Loop1 | 6A25 | OR (HL) | Combine those rows to see whether the prompt is already visible. | |
| 6A26 | ADD HL,DE | |||
| 6A27 | DJNZ PrintInputPrompt_Loop1 | |||
| 6A29 | OR A | The prompt cell is empty, so the prompt must be printed. | ||
| 6A2A | JR Z,PrintInputPrompt_Step1 | |||
| 6A2C | LD A,$0D | Start the prompt on a new line. | ||
| 6A2E | CALL PrintCharacter | Call PrintCharacter to print the character. | ||
| PrintInputPrompt_Step1 | 6A31 | LD HL,$62E0 | Print > on the same line. | |
| 6A34 | CALL PrintString | |||
| 6A37 | RET | Return. | ||
| Prev: 69DC | Up: Map | Next: 6A38 |