2824
|
1 * Disassembly by Os9disasm of xtoa.r
|
|
2
|
|
3 section code
|
|
4
|
|
5 utoa: clra
|
|
6 clrb
|
|
7 pshs d,u
|
|
8 ldu 8,s
|
|
9 bra L0018
|
|
10 itoa: clra
|
|
11 clrb
|
|
12 pshs d,u
|
|
13 ldu 8,s
|
|
14 tst 6,s
|
|
15 bpl L0018
|
|
16 inc ,s
|
|
17 subd 6,s
|
|
18 std 6,s
|
|
19 L0018 ldd 6,s
|
|
20 pshs d
|
|
21 ldd #$000a
|
|
22 lbsr ccumod
|
|
23 addb #$30
|
|
24 stb ,u+
|
|
25 ldd 6,s
|
|
26 pshs d
|
|
27 ldd #$000a
|
|
28 lbsr ccudiv
|
|
29 std 6,s
|
|
30 bgt L0018
|
|
31 tst ,s
|
|
32 beq L003c
|
|
33 ldb #$2d
|
|
34 stb ,u+
|
|
35 L003c clr ,u
|
|
36 ldd 8,s
|
|
37 pshs d
|
|
38 lbsr reverse
|
|
39 leas 4,s
|
|
40 puls u,pc
|
|
41
|
|
42 endsect
|
|
43
|