Prev: F202 Up: Map Next: F243
F233: Print a digit for the miles "out of town"
Used by the routine at F202.
Input
A Base character to use for drawing.
HL Number of miles to print
BC Value to divide by (to select the correct digit)
F233 INC A Increment the current character.
F234 AND A Reset the carry flag.
F235 SBC HL,BC Decrement by the divisor.
F237 JR NC,$F233 Repeat while there is no carry, which will leave the result of the division in A.
F239 ADD HL,BC Restore the last decrement so the number of miles is correct.
This entry point is used by the routine at F202.
F23A LD C,$70 Use bright black on yellow.
F23C CALL $B7F9 Print the graphic.
F23F INC E Move to the next row.
F240 LD A,$2F Set A back to just before ASCII '0' for the next run.
F242 RET Return.
Prev: F202 Up: Map Next: F243