Sherlock: annotated disassembly

Routines

Prev: C240 Up: Map Next: C267
C249: Rub out the last character in the command window
Used by the routine at C1FC.
Input
C Pixel shift
HL Print position
Output
Control joins the input loop at $C22D
C249 LD A,$20 Load A with $20 - Print a space over the last character (C388)
C24B CALL $C388 Call the routine "PLOT-CHAR: draw one character glyph at HL, shifted by..." (C388)
C24E CALL $C267 Call the routine "Step the print position back one 7-pixel character" (C267) - Step the cursor back twice (C267)
C251 CALL $C267 Call the routine "Step the print position back one 7-pixel character" (C267)
C254 LD A,($C1F4) Read "Command-window state" (C1F4) into A - Column counter C1F4 + 1
C257 INC A Add one to A
C258 CP $25 Compare A with $25 - Not yet 37: back to the input loop (C22D)
C25A JR NZ,$C22D If A differs from $25, go back to C22D
C25C LD L,$FE Load L with $FE - Otherwise move to the start of the next line (C29C)...
C25E LD C,$07 Load C with $07
C260 CALL $C29C Call the routine "Move part of the command window down a row and clear..." (C29C)
C263 LD A,$01 Load A with $01 - ...column 1, and back to the input loop
C265 JR $C22D Go back to C22D
Prev: C240 Up: Map Next: C267