Last change
on this file since 58ff1a9 was 7bf3856, checked in by Thomas Lopatic <thomas@…>, 7 years ago |
Added Alcyon C reference output.
|
-
Property mode
set to
100644
|
File size:
862 bytes
|
Line | |
---|
1 | .globl ___atab
|
---|
2 | .globl _atol
|
---|
3 | .text
|
---|
4 | _atol:
|
---|
5 | ~~atol:
|
---|
6 | ~cp=R13
|
---|
7 | link R14,#0
|
---|
8 | movem.l R5-R7/R13-R13,-(sp)
|
---|
9 | ~n=R7
|
---|
10 | ~sign=R6
|
---|
11 | *line 18
|
---|
12 | move.l 8(R14),R13
|
---|
13 | *line 18
|
---|
14 | clr R6
|
---|
15 | *line 20
|
---|
16 | *line 20
|
---|
17 | cmp.b #45,(R13)
|
---|
18 | bne L2
|
---|
19 | *line 21
|
---|
20 | *line 22
|
---|
21 | add.l #1,R13
|
---|
22 | *line 23
|
---|
23 | move #1,R6
|
---|
24 | *line 24
|
---|
25 | bra L3
|
---|
26 | L2:
|
---|
27 | *line 25
|
---|
28 | *line 26
|
---|
29 | *line 27
|
---|
30 | *line 28
|
---|
31 | cmp.b #43,(R13)
|
---|
32 | bne L4
|
---|
33 | *line 28
|
---|
34 | add.l #1,R13
|
---|
35 | L4:L3:
|
---|
36 | *line 31
|
---|
37 | clr.l R7
|
---|
38 | bra L7
|
---|
39 | L8:
|
---|
40 | *line 32
|
---|
41 | move.l #$a,-(sp)
|
---|
42 | move.l R7,-(sp)
|
---|
43 | jsr lmul
|
---|
44 | addq.l #8,sp
|
---|
45 | move.l R0,R7
|
---|
46 | move.b (R13)+,R0
|
---|
47 | ext.w R0
|
---|
48 | ext.l R0
|
---|
49 | add.l R0,R7
|
---|
50 | add.l #$ffffffd0,R7
|
---|
51 | L6:L7:
|
---|
52 | *line 31
|
---|
53 | move.b (R13),R0
|
---|
54 | ext.w R0
|
---|
55 | ext.l R0
|
---|
56 | add.l #___atab,R0
|
---|
57 | move.l R0,R8
|
---|
58 | btst #2,(R8)
|
---|
59 | bne L8
|
---|
60 | L5:
|
---|
61 | *line 34
|
---|
62 | tst R6
|
---|
63 | beq L10000
|
---|
64 | move.l R7,R0
|
---|
65 | neg.l R0
|
---|
66 | bra L10002
|
---|
67 | L10000:move.l R7,R0
|
---|
68 | L10002:bra L1
|
---|
69 | L1:tst.l (sp)+
|
---|
70 | movem.l (sp)+,R6-R7/R13-R13
|
---|
71 | unlk R14
|
---|
72 | rts
|
---|
73 | .data
|
---|
Note:
See
TracBrowser
for help on using the repository browser.