Prev: 44200 Up: Map Next: 44294
44266: Print Input Prompt
Used by the routine at HandlerUserInput.
Print the input prompt.
PrintInputPrompt 44266 LD HL,20608 Point at the prompt graphic in the display file.
44269 LD DE,256 Set the increment in DE for the next screen line.
44272 LD B,8 Scan the eight pixel rows of the prompt cell.
44274 XOR A
PrintInputPrompt_Loop 44275 OR (HL) Collect the pixels of this row of the prompt cell.
44276 ADD HL,DE Move down one line.
44277 DJNZ PrintInputPrompt_Loop Repeat for all eight pixel rows, so A is non-zero if anything is already drawn in the cell.
44279 OR A Jump to PrintPrompt if A is zero.
44280 JR Z,PrintPrompt
Force a newline to be "printed".
44282 LD A,13 Use the ENTER key code.
44284 CALL PrintCharacter Call PrintCharacter to print the character.
PrintPrompt 44287 LD HL,44877 Print "> ".
44290 CALL PrintString
44293 RET Return.
Prev: 44200 Up: Map Next: 44294