Prev: 47709 Up: Map Next: 47772
47741: Convert number in HL to string at IY
Used by the routine at 47499.
Input
HL A number to convert to string
IY A location in memory to store a number converted to a string
47741 LD DE,10000 Convert the ten thousands to a character...
47744 CALL 47772 ...
47747 LD DE,1000 Convert the thousands to a character...
47750 CALL 47772 ...
47753 LD DE,100 Convert the hundreds to a character...
47756 CALL 47772 ...
47759 LD DE,10 Convert the tens to a character...
47762 CALL 47772 ...
47765 LD A,L Load remainder (units) into L
47766 ADD A,48 Add as offset to 48 (ASCII code for "0")
47768 LD (IY+0),A Load ASCII character code into units position in string
47771 RET Return
Prev: 47709 Up: Map Next: 47772