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