Last change
on this file since 4810254 was 7bf3856, checked in by Thomas Lopatic <thomas@…>, 7 years ago |
Added Alcyon C reference output.
|
-
Property mode
set to
100644
|
File size:
4.1 KB
|
Line | |
---|
1 | .globl _ebflag
|
---|
2 | .globl _ebuf
|
---|
3 | .globl _curfet
|
---|
4 | .globl _cfetp
|
---|
5 | .globl _infetp
|
---|
6 | .globl _io_time
|
---|
7 | .globl _io_lcd
|
---|
8 | .globl _io_ser
|
---|
9 | .globl _io_midi
|
---|
10 | .globl _io_disk
|
---|
11 | .globl _io_tone
|
---|
12 | .globl _io_leds
|
---|
13 | .globl _io_kbrd
|
---|
14 | .globl _lcd_a0
|
---|
15 | .globl _lcd_a1
|
---|
16 | .globl _io_vreg
|
---|
17 | .globl _io_vraw
|
---|
18 | .globl _io_vram
|
---|
19 | .globl _io_fpu
|
---|
20 | .globl _v_regs
|
---|
21 | .globl _v_odtab
|
---|
22 | .globl _v_actab
|
---|
23 | .globl _v_ct0
|
---|
24 | .globl _v_gt1
|
---|
25 | .globl _v_score
|
---|
26 | .globl _v_cgtab
|
---|
27 | .globl _v_curs0
|
---|
28 | .globl _v_curs1
|
---|
29 | .globl _v_curs2
|
---|
30 | .globl _v_curs3
|
---|
31 | .globl _v_curs4
|
---|
32 | .globl _v_curs5
|
---|
33 | .globl _v_curs6
|
---|
34 | .globl _v_curs7
|
---|
35 | .globl _v_tcur
|
---|
36 | .globl _v_kbobj
|
---|
37 | .globl _v_lnobj
|
---|
38 | .globl _v_win0
|
---|
39 | .globl _v_cur
|
---|
40 | .globl _fc_sw
|
---|
41 | .globl _fc_val
|
---|
42 | .globl _ac_code
|
---|
43 | .globl _scname
|
---|
44 | .globl _se_chg
|
---|
45 | .globl _curscor
|
---|
46 | .globl _cursect
|
---|
47 | .globl _se1_cnt
|
---|
48 | .globl _se2_cnt
|
---|
49 | .globl _se3_cnt
|
---|
50 | .globl _spool
|
---|
51 | .globl _pspool
|
---|
52 | .globl _spcount
|
---|
53 | .globl _frags
|
---|
54 | .globl _t_bak
|
---|
55 | .globl _t_cur
|
---|
56 | .globl _t_ctr
|
---|
57 | .globl _t_fwd
|
---|
58 | .globl _size1
|
---|
59 | .globl _size2
|
---|
60 | .globl _size3
|
---|
61 | .globl _scores
|
---|
62 | .globl _scp
|
---|
63 | .globl _seclist
|
---|
64 | .globl _hplist
|
---|
65 | .globl _p_bak
|
---|
66 | .globl _p_cur
|
---|
67 | .globl _p_ctr
|
---|
68 | .globl _p_fwd
|
---|
69 | .globl _obj8
|
---|
70 | .globl _recsw
|
---|
71 | .globl _stccol
|
---|
72 | .globl _grpmode
|
---|
73 | .globl _grpstat
|
---|
74 | .globl _lastvel
|
---|
75 | .globl _et_vel
|
---|
76 | .text
|
---|
77 | _et_vel:
|
---|
78 | ~~et_vel:
|
---|
79 | ~n=8
|
---|
80 | link R14,#-4
|
---|
81 | *line 43
|
---|
82 | move 8(R14),R8
|
---|
83 | add.l R8,R8
|
---|
84 | move.l #_lastvel,R9
|
---|
85 | move 0(R8,R9.l),R0
|
---|
86 | ext.l R0
|
---|
87 | divs #252,R0
|
---|
88 | move R0,(sp)
|
---|
89 | move.l #L2,-(sp)
|
---|
90 | move.l #_ebuf,-(sp)
|
---|
91 | jsr _sprintf
|
---|
92 | addq.l #8,sp
|
---|
93 | *line 45
|
---|
94 | move #1,_ebflag
|
---|
95 | *line 46
|
---|
96 | clr R0
|
---|
97 | bra L1
|
---|
98 | L1:unlk R14
|
---|
99 | rts
|
---|
100 | .globl _ef_vel
|
---|
101 | .text
|
---|
102 | _ef_vel:
|
---|
103 | ~~ef_vel:
|
---|
104 | ~n=8
|
---|
105 | link R14,#0
|
---|
106 | movem.l R5-R7/R13-R13,-(sp)
|
---|
107 | ~ival=R7
|
---|
108 | ~i=R6
|
---|
109 | ~ep=R13
|
---|
110 | *line 65
|
---|
111 | clr R7
|
---|
112 | *line 67
|
---|
113 | clr R6
|
---|
114 | bra L6
|
---|
115 | L7:
|
---|
116 | *line 68
|
---|
117 | muls #10,R7
|
---|
118 | move.l #_ebuf,R8
|
---|
119 | move.b 0(R8,R6),R0
|
---|
120 | ext.w R0
|
---|
121 | add R0,R7
|
---|
122 | add #-48,R7
|
---|
123 | L5:
|
---|
124 | *line 67
|
---|
125 | add #1,R6
|
---|
126 | L6:
|
---|
127 | *line 67
|
---|
128 | cmp #3,R6
|
---|
129 | blt L7
|
---|
130 | L4:
|
---|
131 | *line 70
|
---|
132 | clr _ebflag
|
---|
133 | *line 72
|
---|
134 | *line 73
|
---|
135 | cmp #127,R7
|
---|
136 | ble L8
|
---|
137 | *line 73
|
---|
138 | move #-1,R0
|
---|
139 | bra L3
|
---|
140 | *line 74
|
---|
141 | L8:
|
---|
142 | *line 75
|
---|
143 | muls #252,R7
|
---|
144 | and #32736,R7
|
---|
145 | *line 77
|
---|
146 | *line 77
|
---|
147 | tst _recsw
|
---|
148 | beq L9
|
---|
149 | move 8(R14),R8
|
---|
150 | add.l R8,R8
|
---|
151 | move.l #_grpstat,R9
|
---|
152 | tst 0(R8,R9.l)
|
---|
153 | beq L9
|
---|
154 | move 8(R14),R8
|
---|
155 | add.l R8,R8
|
---|
156 | add.l #_grpmode,R8
|
---|
157 | cmp #2,(R8)
|
---|
158 | bne L9
|
---|
159 | *line 78
|
---|
160 | *line 79
|
---|
161 | move 8(R14),R8
|
---|
162 | add.l R8,R8
|
---|
163 | add.l #_lastvel,R8
|
---|
164 | move R7,(R8)
|
---|
165 | *line 80
|
---|
166 | move.l _t_cur,(sp)
|
---|
167 | move #1,-(sp)
|
---|
168 | move.l _p_cur,-(sp)
|
---|
169 | jsr _ep_adj
|
---|
170 | addq.l #6,sp
|
---|
171 | move.l R0,R13
|
---|
172 | *line 81
|
---|
173 | *line 82
|
---|
174 | bra L12
|
---|
175 | L11:
|
---|
176 | *line 83
|
---|
177 | *line 84
|
---|
178 | *line 85
|
---|
179 | move.b 5(R13),R0
|
---|
180 | ext.w R0
|
---|
181 | and #127,R0
|
---|
182 | cmp #5,R0
|
---|
183 | bne L13
|
---|
184 | move.b 7(R13),R0
|
---|
185 | ext.w R0
|
---|
186 | cmp 8(R14),R0
|
---|
187 | bne L13
|
---|
188 | *line 86
|
---|
189 | *line 87
|
---|
190 | move R7,16(R13)
|
---|
191 | *line 88
|
---|
192 | *line 89
|
---|
193 | L13:
|
---|
194 | *line 90
|
---|
195 | move.l 12(R13),R13
|
---|
196 | L12:
|
---|
197 | *line 91
|
---|
198 | move.l (R13),R0
|
---|
199 | cmp.l _t_cur,R0
|
---|
200 | beq L11
|
---|
201 | L10:
|
---|
202 | *line 92
|
---|
203 | *line 93
|
---|
204 | L9:
|
---|
205 | *line 94
|
---|
206 | clr R0
|
---|
207 | bra L3
|
---|
208 | L3:tst.l (sp)+
|
---|
209 | movem.l (sp)+,R6-R7/R13-R13
|
---|
210 | unlk R14
|
---|
211 | rts
|
---|
212 | .globl _rd_vel
|
---|
213 | .text
|
---|
214 | _rd_vel:
|
---|
215 | ~~rd_vel:
|
---|
216 | ~n=8
|
---|
217 | link R14,#-10
|
---|
218 | ~buf=-6
|
---|
219 | *line 112
|
---|
220 | move 8(R14),R8
|
---|
221 | add.l R8,R8
|
---|
222 | move.l #_lastvel,R9
|
---|
223 | move 0(R8,R9.l),R0
|
---|
224 | ext.l R0
|
---|
225 | divs #252,R0
|
---|
226 | move R0,(sp)
|
---|
227 | move.l #L15,-(sp)
|
---|
228 | move.l R14,-(sp)
|
---|
229 | sub.l #6,(sp)
|
---|
230 | jsr _sprintf
|
---|
231 | addq.l #8,sp
|
---|
232 | *line 114
|
---|
233 | *line 115
|
---|
234 | clr R0
|
---|
235 | move 10+_v_regs,R0
|
---|
236 | and #384,R0
|
---|
237 | beq L16
|
---|
238 | *line 115
|
---|
239 | clr (sp)
|
---|
240 | jsr _vbank
|
---|
241 | *line 116
|
---|
242 | L16:
|
---|
243 | *line 117
|
---|
244 | move #18,(sp)
|
---|
245 | move.l R14,-(sp)
|
---|
246 | sub.l #6,(sp)
|
---|
247 | move 8(R14),R0
|
---|
248 | muls #5,R0
|
---|
249 | move R0,-(sp)
|
---|
250 | add #6,(sp)
|
---|
251 | move #5,-(sp)
|
---|
252 | move.l _obj8,-(sp)
|
---|
253 | jsr _vputs
|
---|
254 | adda.l #12,sp
|
---|
255 | *line 119
|
---|
256 | clr R0
|
---|
257 | bra L14
|
---|
258 | L14:unlk R14
|
---|
259 | rts
|
---|
260 | .globl _nd_vel
|
---|
261 | .text
|
---|
262 | _nd_vel:
|
---|
263 | ~~nd_vel:
|
---|
264 | ~n=R7
|
---|
265 | ~k=R6
|
---|
266 | link R14,#0
|
---|
267 | movem.l R4-R7,-(sp)
|
---|
268 | ~ec=R5
|
---|
269 | *line 137
|
---|
270 | move 8(R14),R7
|
---|
271 | *line 137
|
---|
272 | move 10(R14),R6
|
---|
273 | *line 137
|
---|
274 | move _stccol,R5
|
---|
275 | move.l _cfetp,R8
|
---|
276 | move 2(R8),R0
|
---|
277 | sub R0,R5
|
---|
278 | *line 138
|
---|
279 | move R6,R0
|
---|
280 | add #48,R0
|
---|
281 | move R5,R9
|
---|
282 | add.l #_ebuf,R9
|
---|
283 | move.b R0,(R9)
|
---|
284 | *line 140
|
---|
285 | *line 141
|
---|
286 | clr R0
|
---|
287 | move 10+_v_regs,R0
|
---|
288 | and #384,R0
|
---|
289 | beq L18
|
---|
290 | *line 141
|
---|
291 | clr (sp)
|
---|
292 | jsr _vbank
|
---|
293 | *line 142
|
---|
294 | L18:
|
---|
295 | *line 143
|
---|
296 | move #98,(sp)
|
---|
297 | move R6,-(sp)
|
---|
298 | add #48,(sp)
|
---|
299 | move _stccol,-(sp)
|
---|
300 | move #5,-(sp)
|
---|
301 | move.l _obj8,-(sp)
|
---|
302 | jsr _vputc
|
---|
303 | adda.l #10,sp
|
---|
304 | *line 144
|
---|
305 | jsr _advscur
|
---|
306 | *line 146
|
---|
307 | clr R0
|
---|
308 | bra L17
|
---|
309 | L17:tst.l (sp)+
|
---|
310 | movem.l (sp)+,R5-R7
|
---|
311 | unlk R14
|
---|
312 | rts
|
---|
313 | .data
|
---|
314 | L2:.dc.b $25,$30,$33,$64,$0
|
---|
315 | L15:.dc.b $25,$30,$33,$64,$0
|
---|
Note:
See
TracBrowser
for help on using the repository browser.