Nice!!!Ast A. Moore wrote: ↑Fri Dec 07, 2018 6:55 pm Yeah, so in Z80 speak that would be:Code: Select all
ld hl,$3a2f scf l1 inc l sbc 100 jr nc,l1 l2 dec h adc a,10 jp m,l2 adc a,$2f ld (string),hl ld (string+2),a ret string defm "---"
Even better:
Code: Select all
ld hl,256*58+47
p1: inc l
sub 100
jr nc,p1
p2: dec h
add a,10
jr nc,p2
ld (string),hl
add a,48
ld (string+2),a
ret
string: db '000'