2824
|
1 * Disassembly by Os9disasm of atoi.r
|
|
2
|
|
3 section code
|
|
4
|
|
5 atoi: pshs u
|
|
6 ldu 4,s
|
|
7 clra
|
|
8 clrb
|
|
9 pshs d
|
|
10 pshs b
|
|
11 L000a ldb ,u+
|
|
12 cmpb #$20
|
|
13 beq L000a
|
|
14 cmpb #9
|
|
15 beq L000a
|
|
16 cmpb #$2d
|
|
17 bne L001c
|
|
18 stb ,s
|
|
19 bra L0037
|
|
20 L001c cmpb #$2b
|
|
21 bne L0039
|
|
22 bra L0037
|
|
23 L0022 ldd 1,s
|
|
24 lslb
|
|
25 rola
|
|
26 lslb
|
|
27 rola
|
|
28 addd 1,s
|
|
29 lslb
|
|
30 rola
|
|
31 pshs d
|
|
32 ldb -1,u
|
|
33 clra
|
|
34 subb #$30
|
|
35 addd ,s++
|
|
36 std 1,s
|
|
37 L0037 ldb ,u+
|
|
38 L0039 cmpb #$30
|
|
39 bcs L0041
|
|
40 cmpb #$39
|
|
41 bls L0022
|
|
42 L0041 tst ,s+
|
|
43 puls d
|
|
44 beq L004b
|
|
45 nega
|
|
46 negb
|
|
47 sbca #0
|
|
48 L004b puls u,pc
|
|
49
|
|
50 endsect
|
|
51
|