Prev: 83F5 Up: Map Next: 843A
842E: One decimal digit of HL
Used by the routine at SHOW_SCORE.
The number of times DE goes into HL, as a character; HL is left with the remainder.
Input
HL The number
DE The place value
Output
A The digit, '0' to '9'
F Z if it is '0'
DIGIT 842E LD A,$2F
DIGIT_0 8430 INC A
8431 AND A
8432 SBC HL,DE
8434 JR NC,DIGIT_0
8436 ADD HL,DE
8437 CP $30
8439 RET
Prev: 83F5 Up: Map Next: 843A