Last change
on this file since 0580615 was 7bf3856, checked in by Thomas Lopatic <thomas@…>, 7 years ago |
Added Alcyon C reference output.
|
-
Property mode
set to
100644
|
File size:
3.2 KB
|
Line | |
---|
1 | .globl _ebflag
|
---|
2 | .globl _ebuf
|
---|
3 | .globl _curfet
|
---|
4 | .globl _cfetp
|
---|
5 | .globl _infetp
|
---|
6 | .globl _waveob
|
---|
7 | .globl _stccol
|
---|
8 | .globl _curwave
|
---|
9 | .globl _curvce
|
---|
10 | .globl _curwslt
|
---|
11 | .globl _wsnmod
|
---|
12 | .globl _wdbox
|
---|
13 | .globl _dspbuf
|
---|
14 | .globl _et_wavs
|
---|
15 | .text
|
---|
16 | _et_wavs:
|
---|
17 | ~~et_wavs:
|
---|
18 | ~n=8
|
---|
19 | link R14,#-4
|
---|
20 | *line 42
|
---|
21 | move _curwave,(sp)
|
---|
22 | add #1,(sp)
|
---|
23 | move.l #L2,-(sp)
|
---|
24 | move.l #_ebuf,-(sp)
|
---|
25 | jsr _sprintf
|
---|
26 | addq.l #8,sp
|
---|
27 | *line 43
|
---|
28 | move #1,_ebflag
|
---|
29 | *line 45
|
---|
30 | clr R0
|
---|
31 | bra L1
|
---|
32 | L1:unlk R14
|
---|
33 | rts
|
---|
34 | .globl _ef_wavs
|
---|
35 | .text
|
---|
36 | _ef_wavs:
|
---|
37 | ~~ef_wavs:
|
---|
38 | ~n=8
|
---|
39 | link R14,#0
|
---|
40 | movem.l R5-R7,-(sp)
|
---|
41 | ~i=R7
|
---|
42 | ~tmpval=R6
|
---|
43 | *line 60
|
---|
44 | clr.b 2+_ebuf
|
---|
45 | *line 61
|
---|
46 | clr _ebflag
|
---|
47 | *line 63
|
---|
48 | clr R6
|
---|
49 | *line 65
|
---|
50 | clr R7
|
---|
51 | bra L6
|
---|
52 | L7:
|
---|
53 | *line 66
|
---|
54 | muls #10,R6
|
---|
55 | move.l #_ebuf,R8
|
---|
56 | move.b 0(R8,R7),R0
|
---|
57 | ext.w R0
|
---|
58 | add R0,R6
|
---|
59 | add #-48,R6
|
---|
60 | L5:
|
---|
61 | *line 65
|
---|
62 | add #1,R7
|
---|
63 | L6:
|
---|
64 | *line 65
|
---|
65 | cmp #2,R7
|
---|
66 | blt L7
|
---|
67 | L4:
|
---|
68 | *line 68
|
---|
69 | *line 69
|
---|
70 | cmp #20,R6
|
---|
71 | bgt L10000
|
---|
72 | tst R6
|
---|
73 | bne L8
|
---|
74 | L10000:*line 69
|
---|
75 | move #-1,R0
|
---|
76 | bra L3
|
---|
77 | *line 70
|
---|
78 | L8:
|
---|
79 | *line 71
|
---|
80 | move _curvce,R8
|
---|
81 | add.l R8,R8
|
---|
82 | add.l R8,R8
|
---|
83 | move _curwslt,R9
|
---|
84 | add.l R9,R9
|
---|
85 | add.l R9,R8
|
---|
86 | add.l #_wsnmod,R8
|
---|
87 | move #1,(R8)
|
---|
88 | *line 72
|
---|
89 | move R6,R0
|
---|
90 | sub #1,R0
|
---|
91 | move R0,_curwave
|
---|
92 | *line 73
|
---|
93 | clr R0
|
---|
94 | bra L3
|
---|
95 | L3:tst.l (sp)+
|
---|
96 | movem.l (sp)+,R6-R7
|
---|
97 | unlk R14
|
---|
98 | rts
|
---|
99 | .globl _rd_wavs
|
---|
100 | .text
|
---|
101 | _rd_wavs:
|
---|
102 | ~~rd_wavs:
|
---|
103 | ~nn=8
|
---|
104 | link R14,#0
|
---|
105 | movem.l R5-R7,-(sp)
|
---|
106 | ~n=R7
|
---|
107 | ~cx=R6
|
---|
108 | *line 92
|
---|
109 | move _curvce,R8
|
---|
110 | add.l R8,R8
|
---|
111 | add.l R8,R8
|
---|
112 | move _curwslt,R9
|
---|
113 | add.l R9,R9
|
---|
114 | add.l R9,R8
|
---|
115 | move.l #_wsnmod,R9
|
---|
116 | tst 0(R8,R9.l)
|
---|
117 | beq L10001
|
---|
118 | move #13,(sp)
|
---|
119 | bra L10003
|
---|
120 | L10001:move R7,R0
|
---|
121 | asl #4,R0
|
---|
122 | ext.l R0
|
---|
123 | move.l R0,R8
|
---|
124 | move.l #_wdbox,R9
|
---|
125 | move 8(R8,R9.l),(sp)
|
---|
126 | L10003:jsr _exp_c
|
---|
127 | move R0,R6
|
---|
128 | *line 93
|
---|
129 | move 8(R14),R7
|
---|
130 | and #255,R7
|
---|
131 | *line 95
|
---|
132 | move _curwave,(sp)
|
---|
133 | add #1,(sp)
|
---|
134 | move.l #L10,-(sp)
|
---|
135 | move.l #_dspbuf,-(sp)
|
---|
136 | jsr _sprintf
|
---|
137 | addq.l #8,sp
|
---|
138 | *line 97
|
---|
139 | clr (sp)
|
---|
140 | jsr _vbank
|
---|
141 | *line 98
|
---|
142 | *line 99
|
---|
143 | move #14,(sp)
|
---|
144 | move.l #_dspbuf,-(sp)
|
---|
145 | move R7,R0
|
---|
146 | asl #4,R0
|
---|
147 | ext.l R0
|
---|
148 | move.l R0,R8
|
---|
149 | move.l #_wdbox,R9
|
---|
150 | move 14(R8,R9.l),-(sp)
|
---|
151 | add #9,(sp)
|
---|
152 | move R7,R0
|
---|
153 | asl #4,R0
|
---|
154 | ext.l R0
|
---|
155 | move.l R0,R8
|
---|
156 | move.l #_wdbox,R9
|
---|
157 | move 12(R8,R9.l),-(sp)
|
---|
158 | move R7,R0
|
---|
159 | asl #4,R0
|
---|
160 | ext.l R0
|
---|
161 | move.l R0,R8
|
---|
162 | move.l #_wdbox,R9
|
---|
163 | move 10(R8,R9.l),-(sp)
|
---|
164 | move R6,-(sp)
|
---|
165 | move #64,-(sp)
|
---|
166 | move.l _waveob,-(sp)
|
---|
167 | jsr _vcputsv
|
---|
168 | adda.l #18,sp
|
---|
169 | *line 101
|
---|
170 | clr R0
|
---|
171 | bra L9
|
---|
172 | L9:tst.l (sp)+
|
---|
173 | movem.l (sp)+,R6-R7
|
---|
174 | unlk R14
|
---|
175 | rts
|
---|
176 | .globl _nd_wavs
|
---|
177 | .text
|
---|
178 | _nd_wavs:
|
---|
179 | ~~nd_wavs:
|
---|
180 | ~k=R7
|
---|
181 | ~nn=8
|
---|
182 | link R14,#0
|
---|
183 | movem.l R4-R7,-(sp)
|
---|
184 | ~ec=R6
|
---|
185 | ~n=R5
|
---|
186 | *line 117
|
---|
187 | move 10(R14),R7
|
---|
188 | *line 117
|
---|
189 | move 8(R14),R5
|
---|
190 | and #255,R5
|
---|
191 | *line 118
|
---|
192 | move _stccol,R6
|
---|
193 | move.l _cfetp,R8
|
---|
194 | move 2(R8),R0
|
---|
195 | sub R0,R6
|
---|
196 | *line 119
|
---|
197 | move R7,R0
|
---|
198 | add #48,R0
|
---|
199 | move R6,R9
|
---|
200 | add.l #_ebuf,R9
|
---|
201 | move.b R0,(R9)
|
---|
202 | *line 120
|
---|
203 | clr.b 2+_ebuf
|
---|
204 | *line 122
|
---|
205 | move R7,R0
|
---|
206 | add #48,R0
|
---|
207 | move.b R0,_dspbuf
|
---|
208 | *line 123
|
---|
209 | clr.b 1+_dspbuf
|
---|
210 | *line 125
|
---|
211 | clr (sp)
|
---|
212 | jsr _vbank
|
---|
213 | *line 126
|
---|
214 | *line 127
|
---|
215 | move #14,(sp)
|
---|
216 | move.l #_dspbuf,-(sp)
|
---|
217 | move _stccol,-(sp)
|
---|
218 | move R5,R0
|
---|
219 | asl #4,R0
|
---|
220 | ext.l R0
|
---|
221 | move.l R0,R8
|
---|
222 | move.l #_wdbox,R9
|
---|
223 | move 12(R8,R9.l),-(sp)
|
---|
224 | move R5,R0
|
---|
225 | asl #4,R0
|
---|
226 | ext.l R0
|
---|
227 | move.l R0,R8
|
---|
228 | move.l #_wdbox,R9
|
---|
229 | move 10(R8,R9.l),-(sp)
|
---|
230 | move #12,-(sp)
|
---|
231 | move #64,-(sp)
|
---|
232 | move.l _waveob,-(sp)
|
---|
233 | jsr _vcputsv
|
---|
234 | adda.l #18,sp
|
---|
235 | *line 129
|
---|
236 | jsr _advwcur
|
---|
237 | *line 130
|
---|
238 | clr R0
|
---|
239 | bra L11
|
---|
240 | L11:tst.l (sp)+
|
---|
241 | movem.l (sp)+,R5-R7
|
---|
242 | unlk R14
|
---|
243 | rts
|
---|
244 | .data
|
---|
245 | L2:.dc.b $25,$30,$32,$64,$0
|
---|
246 | L10:.dc.b $25,$30,$32,$64,$0
|
---|
Note:
See
TracBrowser
for help on using the repository browser.