Prev: 50048 Up: Map Next: 50140
50112: Print Input Prompt
Used by the routine at Handler_UserInput.
Start a new line when the text window is not empty, then print the prompt.
PrintInputPrompt 50112 LD HL,20608 Scan eight rows from the top of the screen.
50115 LD DE,256
50118 LD B,8
50120 XOR A Start with no text found.
PrintInputPrompt_Collect 50121 OR (HL) Collect whether any of those rows already holds text.
50122 ADD HL,DE
50123 DJNZ PrintInputPrompt_Collect
50125 OR A Jump to PrintInputPrompt_Print when the text window is still empty.
50126 JR Z,PrintInputPrompt_Print
50128 LD A,13 Print a newline so the prompt starts on a fresh line.
50130 CALL PrintCharacter
PrintInputPrompt_Print 50133 LD HL,47957 Print "> ".
50136 CALL PrintString
50139 RET Return.
Prev: 50048 Up: Map Next: 50140