ADFB: Prints a decimal BCD string onto screen.
Display_DecimalValue. |
ADFB |
LD B,$04 |
|
ADFD |
XOR A |
|
ADFE |
LD DE,$0003 |
|
AE01 |
ADD HL,DE |
|
AE02 |
LD DE,_adf3 |
Display_DecimalValue._0 |
AE05 |
LD C,(HL) |
|
AE06 |
RLD |
|
AE08 |
LD (DE),A |
|
AE09 |
INC DE |
|
AE0A |
RLD |
|
AE0C |
LD (DE),A |
|
AE0D |
INC DE |
|
AE0E |
LD (HL),C |
|
AE0F |
DEC HL |
|
AE10 |
DJNZ Display_DecimalValue._0 |
|
AE12 |
LD HL,_adf3 |
|
AE15 |
LD B,$07 |
|
AE17 |
LD C,$00 |
Display_DecimalValue._1 |
AE19 |
LD A,(HL) |
|
AE1A |
OR C |
|
AE1B |
JR Z,Display_DecimalValue._2 |
|
AE1D |
LD C,$30 |
|
AE1F |
OR C |
|
AE20 |
CALL Print_SelectChar |
Display_DecimalValue._2 |
AE23 |
INC HL |
|
AE24 |
DJNZ Display_DecimalValue._1 |
|
AE26 |
LD A,(HL) |
|
AE27 |
OR $30 |
|
AE29 |
JP Print_SelectChar |