Last change
on this file since 9519422 was 7bf3856, checked in by Thomas Lopatic <thomas@…>, 7 years ago |
Added Alcyon C reference output.
|
-
Property mode
set to
100644
|
File size:
2.4 KB
|
Line | |
---|
1 | .globl _ebflag
|
---|
2 | .globl _ebuf
|
---|
3 | .globl _curfet
|
---|
4 | .globl _cfetp
|
---|
5 | .globl _infetp
|
---|
6 | .globl _asgob
|
---|
7 | .globl _stcrow
|
---|
8 | .globl _stccol
|
---|
9 | .globl _curmop
|
---|
10 | .globl _adbox
|
---|
11 | .globl _dspbuf
|
---|
12 | .globl _gprep
|
---|
13 | .globl _et_aopt
|
---|
14 | .text
|
---|
15 | _et_aopt:
|
---|
16 | ~~et_aopt:
|
---|
17 | ~n=8
|
---|
18 | link R14,#-4
|
---|
19 | *line 41
|
---|
20 | move _curmop,(sp)
|
---|
21 | move.l #L2,-(sp)
|
---|
22 | move.l #_ebuf,-(sp)
|
---|
23 | jsr _sprintf
|
---|
24 | addq.l #8,sp
|
---|
25 | *line 42
|
---|
26 | move #1,_ebflag
|
---|
27 | *line 44
|
---|
28 | clr R0
|
---|
29 | bra L1
|
---|
30 | L1:unlk R14
|
---|
31 | rts
|
---|
32 | .globl _ef_aopt
|
---|
33 | .text
|
---|
34 | _ef_aopt:
|
---|
35 | ~~ef_aopt:
|
---|
36 | ~n=8
|
---|
37 | link R14,#0
|
---|
38 | movem.l R6-R7,-(sp)
|
---|
39 | ~tmpval=R7
|
---|
40 | *line 59
|
---|
41 | clr.b 1+_ebuf
|
---|
42 | *line 60
|
---|
43 | clr _ebflag
|
---|
44 | *line 62
|
---|
45 | move.b _ebuf,R7
|
---|
46 | ext.w R7
|
---|
47 | add #-48,R7
|
---|
48 | *line 64
|
---|
49 | *line 65
|
---|
50 | cmp #3,R7
|
---|
51 | ble L4
|
---|
52 | *line 65
|
---|
53 | move #-1,R0
|
---|
54 | bra L3
|
---|
55 | *line 66
|
---|
56 | L4:
|
---|
57 | *line 67
|
---|
58 | move R7,_curmop
|
---|
59 | *line 68
|
---|
60 | jsr _modasg
|
---|
61 | *line 69
|
---|
62 | clr R0
|
---|
63 | bra L3
|
---|
64 | L3:tst.l (sp)+
|
---|
65 | movem.l (sp)+,R7-R7
|
---|
66 | unlk R14
|
---|
67 | rts
|
---|
68 | .globl _rd_aopt
|
---|
69 | .text
|
---|
70 | _rd_aopt:
|
---|
71 | ~~rd_aopt:
|
---|
72 | ~nn=8
|
---|
73 | link R14,#0
|
---|
74 | movem.l R6-R7,-(sp)
|
---|
75 | ~n=R7
|
---|
76 | *line 87
|
---|
77 | move 8(R14),R7
|
---|
78 | and #255,R7
|
---|
79 | *line 89
|
---|
80 | clr (sp)
|
---|
81 | jsr _vbank
|
---|
82 | *line 90
|
---|
83 | *line 91
|
---|
84 | move #14,(sp)
|
---|
85 | move _curmop,R8
|
---|
86 | add.l R8,R8
|
---|
87 | add.l R8,R8
|
---|
88 | move.l #_gprep,R9
|
---|
89 | move.l 0(R8,R9.l),-(sp)
|
---|
90 | move R7,R0
|
---|
91 | asl #4,R0
|
---|
92 | ext.l R0
|
---|
93 | move.l R0,R8
|
---|
94 | move.l #_adbox,R9
|
---|
95 | move 14(R8,R9.l),-(sp)
|
---|
96 | add #9,(sp)
|
---|
97 | move R7,R0
|
---|
98 | asl #4,R0
|
---|
99 | ext.l R0
|
---|
100 | move.l R0,R8
|
---|
101 | move.l #_adbox,R9
|
---|
102 | move 12(R8,R9.l),-(sp)
|
---|
103 | move R7,R0
|
---|
104 | asl #4,R0
|
---|
105 | ext.l R0
|
---|
106 | move.l R0,R8
|
---|
107 | move.l #_adbox,R9
|
---|
108 | move 10(R8,R9.l),-(sp)
|
---|
109 | move R7,R0
|
---|
110 | asl #4,R0
|
---|
111 | ext.l R0
|
---|
112 | move.l R0,R8
|
---|
113 | move.l #_adbox,R9
|
---|
114 | move 8(R8,R9.l),-(sp)
|
---|
115 | move #64,-(sp)
|
---|
116 | move.l _asgob,-(sp)
|
---|
117 | jsr _vcputsv
|
---|
118 | adda.l #18,sp
|
---|
119 | *line 93
|
---|
120 | clr R0
|
---|
121 | bra L5
|
---|
122 | L5:tst.l (sp)+
|
---|
123 | movem.l (sp)+,R7-R7
|
---|
124 | unlk R14
|
---|
125 | rts
|
---|
126 | .globl _nd_aopt
|
---|
127 | .text
|
---|
128 | _nd_aopt:
|
---|
129 | ~~nd_aopt:
|
---|
130 | ~k=R7
|
---|
131 | ~nn=8
|
---|
132 | link R14,#0
|
---|
133 | movem.l R5-R7,-(sp)
|
---|
134 | ~n=R6
|
---|
135 | *line 109
|
---|
136 | move 10(R14),R7
|
---|
137 | *line 109
|
---|
138 | *line 110
|
---|
139 | cmp #1,R7
|
---|
140 | blt L10000
|
---|
141 | cmp #2,R7
|
---|
142 | ble L7
|
---|
143 | L10000:*line 110
|
---|
144 | move #-1,R0
|
---|
145 | bra L6
|
---|
146 | *line 111
|
---|
147 | L7:
|
---|
148 | *line 112
|
---|
149 | move 8(R14),R6
|
---|
150 | and #255,R6
|
---|
151 | *line 113
|
---|
152 | move R7,R0
|
---|
153 | add #48,R0
|
---|
154 | move.b R0,_ebuf
|
---|
155 | *line 114
|
---|
156 | clr.b 1+_ebuf
|
---|
157 | *line 116
|
---|
158 | move R7,R0
|
---|
159 | add #48,R0
|
---|
160 | move.b R0,_dspbuf
|
---|
161 | *line 117
|
---|
162 | clr.b 1+_dspbuf
|
---|
163 | *line 119
|
---|
164 | clr (sp)
|
---|
165 | jsr _vbank
|
---|
166 | *line 120
|
---|
167 | move #14,(sp)
|
---|
168 | move.l #_dspbuf,-(sp)
|
---|
169 | move _stccol,-(sp)
|
---|
170 | move _stcrow,-(sp)
|
---|
171 | move R6,R0
|
---|
172 | asl #4,R0
|
---|
173 | ext.l R0
|
---|
174 | move.l R0,R8
|
---|
175 | move.l #_adbox,R9
|
---|
176 | move 10(R8,R9.l),-(sp)
|
---|
177 | move #12,-(sp)
|
---|
178 | move #64,-(sp)
|
---|
179 | move.l _asgob,-(sp)
|
---|
180 | jsr _vcputsv
|
---|
181 | adda.l #18,sp
|
---|
182 | *line 122
|
---|
183 | clr R0
|
---|
184 | bra L6
|
---|
185 | L6:tst.l (sp)+
|
---|
186 | movem.l (sp)+,R6-R7
|
---|
187 | unlk R14
|
---|
188 | rts
|
---|
189 | .data
|
---|
190 | L2:.dc.b $25,$30,$31,$2E,$31,$64,$0
|
---|
Note:
See
TracBrowser
for help on using the repository browser.