Last change
on this file since dade7a0 was 7bf3856, checked in by Thomas Lopatic <thomas@…>, 7 years ago |
Added Alcyon C reference output.
|
-
Property mode
set to
100644
|
File size:
3.5 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 _adbox
|
---|
10 | .globl _dspbuf
|
---|
11 | .globl _vce2grp
|
---|
12 | .globl _ins2grp
|
---|
13 | .globl _et_avgr
|
---|
14 | .text
|
---|
15 | _et_avgr:
|
---|
16 | ~~et_avgr:
|
---|
17 | ~nn=8
|
---|
18 | link R14,#-4
|
---|
19 | movem.l R6-R7,-(sp)
|
---|
20 | ~grp=R7
|
---|
21 | ~buf=-4
|
---|
22 | *line 52
|
---|
23 | move 8(R14),R7
|
---|
24 | asr #8,R7
|
---|
25 | and #255,R7
|
---|
26 | *line 54
|
---|
27 | move R7,R8
|
---|
28 | add.l R8,R8
|
---|
29 | move.l #_vce2grp,R9
|
---|
30 | move 0(R8,R9.l),(sp)
|
---|
31 | move.l R14,-(sp)
|
---|
32 | sub.l #4,(sp)
|
---|
33 | jsr _numblk
|
---|
34 | addq.l #4,sp
|
---|
35 | move.l R0,(sp)
|
---|
36 | move.l #L2,-(sp)
|
---|
37 | move.l #_ebuf,-(sp)
|
---|
38 | jsr _sprintf
|
---|
39 | addq.l #8,sp
|
---|
40 | *line 55
|
---|
41 | move #1,_ebflag
|
---|
42 | *line 62
|
---|
43 | clr R0
|
---|
44 | bra L1
|
---|
45 | L1:tst.l (sp)+
|
---|
46 | movem.l (sp)+,R7-R7
|
---|
47 | unlk R14
|
---|
48 | rts
|
---|
49 | .globl _ef_avgr
|
---|
50 | .text
|
---|
51 | _ef_avgr:
|
---|
52 | ~~ef_avgr:
|
---|
53 | ~nn=8
|
---|
54 | link R14,#0
|
---|
55 | movem.l R4-R7,-(sp)
|
---|
56 | ~tmpval=R7
|
---|
57 | ~vce=R6
|
---|
58 | ~i=R5
|
---|
59 | *line 80
|
---|
60 | move 8(R14),R6
|
---|
61 | asr #8,R6
|
---|
62 | and #255,R6
|
---|
63 | *line 82
|
---|
64 | clr.b 2+_ebuf
|
---|
65 | *line 83
|
---|
66 | clr _ebflag
|
---|
67 | *line 84
|
---|
68 | clr R7
|
---|
69 | *line 91
|
---|
70 | *line 91
|
---|
71 | cmp.b #32,_ebuf
|
---|
72 | bne L4
|
---|
73 | cmp.b #32,1+_ebuf
|
---|
74 | bne L4
|
---|
75 | *line 92
|
---|
76 | *line 93
|
---|
77 | move #-1,R7
|
---|
78 | *line 94
|
---|
79 | bra L5
|
---|
80 | L4:
|
---|
81 | *line 95
|
---|
82 | *line 96
|
---|
83 | *line 97
|
---|
84 | clr R5
|
---|
85 | bra L8
|
---|
86 | L9:
|
---|
87 | *line 98
|
---|
88 | *line 99
|
---|
89 | *line 100
|
---|
90 | move R5,R8
|
---|
91 | add.l #_ebuf,R8
|
---|
92 | cmp.b #32,(R8)
|
---|
93 | bne L10
|
---|
94 | *line 100
|
---|
95 | move R5,R8
|
---|
96 | add.l #_ebuf,R8
|
---|
97 | move.b #48,(R8)
|
---|
98 | *line 101
|
---|
99 | L10:
|
---|
100 | *line 102
|
---|
101 | muls #10,R7
|
---|
102 | move.l #_ebuf,R8
|
---|
103 | move.b 0(R8,R5),R0
|
---|
104 | ext.w R0
|
---|
105 | add R0,R7
|
---|
106 | add #-48,R7
|
---|
107 | L7:
|
---|
108 | *line 97
|
---|
109 | add #1,R5
|
---|
110 | L8:
|
---|
111 | *line 97
|
---|
112 | cmp #2,R5
|
---|
113 | blt L9
|
---|
114 | L6:
|
---|
115 | *line 103
|
---|
116 | *line 104
|
---|
117 | *line 105
|
---|
118 | *line 106
|
---|
119 | tst R7
|
---|
120 | beq L10000
|
---|
121 | cmp #12,R7
|
---|
122 | ble L11
|
---|
123 | L10000:*line 106
|
---|
124 | move #-1,R0
|
---|
125 | bra L3
|
---|
126 | L11:L5:
|
---|
127 | *line 109
|
---|
128 | move R6,R8
|
---|
129 | add.l R8,R8
|
---|
130 | add.l #_vce2grp,R8
|
---|
131 | move R7,(R8)
|
---|
132 | *line 111
|
---|
133 | *line 112
|
---|
134 | tst R7
|
---|
135 | ble L12
|
---|
136 | *line 112
|
---|
137 | move #1,(sp)
|
---|
138 | move R7,R8
|
---|
139 | sub #1,R8
|
---|
140 | add.l R8,R8
|
---|
141 | move.l #_ins2grp,R9
|
---|
142 | move 0(R8,R9.l),-(sp)
|
---|
143 | and #255,(sp)
|
---|
144 | move R6,-(sp)
|
---|
145 | jsr _execinst
|
---|
146 | addq.l #4,sp
|
---|
147 | *line 113
|
---|
148 | L12:
|
---|
149 | *line 114
|
---|
150 | jsr _modasg
|
---|
151 | *line 115
|
---|
152 | clr R0
|
---|
153 | bra L3
|
---|
154 | L3:tst.l (sp)+
|
---|
155 | movem.l (sp)+,R5-R7
|
---|
156 | unlk R14
|
---|
157 | rts
|
---|
158 | .globl _rd_avgr
|
---|
159 | .text
|
---|
160 | _rd_avgr:
|
---|
161 | ~~rd_avgr:
|
---|
162 | ~nn=8
|
---|
163 | link R14,#-4
|
---|
164 | movem.l R5-R7,-(sp)
|
---|
165 | ~n=R7
|
---|
166 | ~grp=R6
|
---|
167 | ~buf=-4
|
---|
168 | *line 134
|
---|
169 | move 8(R14),R7
|
---|
170 | and #255,R7
|
---|
171 | *line 135
|
---|
172 | move 8(R14),R6
|
---|
173 | asr #8,R6
|
---|
174 | and #255,R6
|
---|
175 | *line 137
|
---|
176 | clr (sp)
|
---|
177 | jsr _vbank
|
---|
178 | *line 138
|
---|
179 | *line 139
|
---|
180 | move #14,(sp)
|
---|
181 | move R6,R8
|
---|
182 | add.l R8,R8
|
---|
183 | move.l #_vce2grp,R9
|
---|
184 | move 0(R8,R9.l),-(sp)
|
---|
185 | move.l R14,-(sp)
|
---|
186 | sub.l #4,(sp)
|
---|
187 | jsr _numblk
|
---|
188 | addq.l #6,sp
|
---|
189 | move.l R0,-(sp)
|
---|
190 | move.l _cfetp,R8
|
---|
191 | move 2(R8),-(sp)
|
---|
192 | move.l _cfetp,R8
|
---|
193 | move (R8),-(sp)
|
---|
194 | move R7,R0
|
---|
195 | asl #4,R0
|
---|
196 | ext.l R0
|
---|
197 | move.l R0,R8
|
---|
198 | move.l #_adbox,R9
|
---|
199 | move 10(R8,R9.l),-(sp)
|
---|
200 | move R7,R0
|
---|
201 | asl #4,R0
|
---|
202 | ext.l R0
|
---|
203 | move.l R0,R8
|
---|
204 | move.l #_adbox,R9
|
---|
205 | move 8(R8,R9.l),-(sp)
|
---|
206 | move #64,-(sp)
|
---|
207 | move.l _asgob,-(sp)
|
---|
208 | jsr _vcputsv
|
---|
209 | adda.l #18,sp
|
---|
210 | *line 141
|
---|
211 | clr R0
|
---|
212 | bra L13
|
---|
213 | L13:tst.l (sp)+
|
---|
214 | movem.l (sp)+,R6-R7
|
---|
215 | unlk R14
|
---|
216 | rts
|
---|
217 | .globl _nd_avgr
|
---|
218 | .text
|
---|
219 | _nd_avgr:
|
---|
220 | ~~nd_avgr:
|
---|
221 | ~k=R7
|
---|
222 | ~nn=8
|
---|
223 | link R14,#0
|
---|
224 | movem.l R4-R7,-(sp)
|
---|
225 | ~n=R6
|
---|
226 | ~col=R5
|
---|
227 | *line 160
|
---|
228 | move 10(R14),R7
|
---|
229 | *line 160
|
---|
230 | move 8(R14),R6
|
---|
231 | and #255,R6
|
---|
232 | *line 161
|
---|
233 | move _stccol,R5
|
---|
234 | move.l _cfetp,R8
|
---|
235 | move 2(R8),R0
|
---|
236 | sub R0,R5
|
---|
237 | *line 163
|
---|
238 | move R7,R0
|
---|
239 | add #48,R0
|
---|
240 | move R5,R9
|
---|
241 | add.l #_ebuf,R9
|
---|
242 | move.b R0,(R9)
|
---|
243 | *line 164
|
---|
244 | clr.b 2+_ebuf
|
---|
245 | *line 172
|
---|
246 | move R7,R0
|
---|
247 | add #48,R0
|
---|
248 | move.b R0,_dspbuf
|
---|
249 | *line 173
|
---|
250 | clr.b 1+_dspbuf
|
---|
251 | *line 175
|
---|
252 | clr (sp)
|
---|
253 | jsr _vbank
|
---|
254 | *line 176
|
---|
255 | move #14,(sp)
|
---|
256 | move.l #_dspbuf,-(sp)
|
---|
257 | move _stccol,-(sp)
|
---|
258 | move _stcrow,-(sp)
|
---|
259 | move R6,R0
|
---|
260 | asl #4,R0
|
---|
261 | ext.l R0
|
---|
262 | move.l R0,R8
|
---|
263 | move.l #_adbox,R9
|
---|
264 | move 10(R8,R9.l),-(sp)
|
---|
265 | move #12,-(sp)
|
---|
266 | move #64,-(sp)
|
---|
267 | move.l _asgob,-(sp)
|
---|
268 | jsr _vcputsv
|
---|
269 | adda.l #18,sp
|
---|
270 | *line 178
|
---|
271 | jsr _advacur
|
---|
272 | *line 179
|
---|
273 | clr R0
|
---|
274 | bra L14
|
---|
275 | L14:tst.l (sp)+
|
---|
276 | movem.l (sp)+,R5-R7
|
---|
277 | unlk R14
|
---|
278 | rts
|
---|
279 | .data
|
---|
280 | L2:.dc.b $25,$73,$0
|
---|
Note:
See
TracBrowser
for help on using the repository browser.