![]() |
Routines |
| Prev: C380 | Up: Map | Next: C3DC |
|
Used by the routine at Handler_UserInput.
Start a new line when the text window is not empty, then print the prompt.
|
||||
| PrintInputPrompt | C3C0 | LD HL,$5080 | Scan eight rows from the top of the screen. | |
| C3C3 | LD DE,$0100 | |||
| C3C6 | LD B,$08 | |||
| C3C8 | XOR A | Start with no text found. | ||
| PrintInputPrompt_Collect | C3C9 | OR (HL) | Collect whether any of those rows already holds text. | |
| C3CA | ADD HL,DE | |||
| C3CB | DJNZ PrintInputPrompt_Collect | |||
| C3CD | OR A | Jump to PrintInputPrompt_Print when the text window is still empty. | ||
| C3CE | JR Z,PrintInputPrompt_Print | |||
| C3D0 | LD A,$0D | Print a newline so the prompt starts on a fresh line. | ||
| C3D2 | CALL PrintCharacter | |||
| PrintInputPrompt_Print | C3D5 | LD HL,$BB55 | Print "> ". | |
| C3D8 | CALL PrintString | |||
| C3DB | RET | Return. | ||
|
View the equivalent code in;
|
||||
| Prev: C380 | Up: Map | Next: C3DC |