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