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