Sherlock: annotated disassembly

Routines

Prev: C190 Up: Map Next: C1C0
C1A8: Print the clock line: B characters from HL at screen address $5041
A space, the B characters, a space, through PRINT-CHAR (C388). The clock printer jumps here (BFA1) with the eleven characters of 'Mon 08:02am' built at BF6E.
Input
HL The text
B The number of characters
Output
The text printed at the status bar
C1A8 LD DE,$5041 Load DE with $5041 - DE = the text, HL = screen address $5041 (row 18)
C1AB EX DE,HL Swap DE and HL
C1AC LD C,$00 C = pixel shift 0
C1AE LD A,$20 Load A with $20 - A space first (C388 prints a character)
C1B0 CALL $C388 Call the routine "PLOT-CHAR: draw one character glyph at HL, shifted by..." (C388)
C1B3 LD A,(DE) Read the byte DE points at into A - Then B characters from DE
C1B4 CALL $C388 Call the routine "PLOT-CHAR: draw one character glyph at HL, shifted by..." (C388)
C1B7 INC DE Step DE on to the next byte
C1B8 DJNZ $C1B3 Count B down and, while it is not zero, go back to C1B3
C1BA LD A,$20 Load A with $20 - And a space after
C1BC CALL $C388 Call the routine "PLOT-CHAR: draw one character glyph at HL, shifted by..." (C388)
C1BF RET Return to the caller
Prev: C190 Up: Map Next: C1C0