Last change
on this file since dade7a0 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 _asgob
|
---|
7 | .globl _stcrow
|
---|
8 | .globl _stccol
|
---|
9 | .globl _adbox
|
---|
10 | .globl _dspbuf
|
---|
11 | .globl _grp2prt
|
---|
12 | .globl _et_agch
|
---|
13 | .text
|
---|
14 | _et_agch:
|
---|
15 | ~~et_agch:
|
---|
16 | ~n=8
|
---|
17 | link R14,#-4
|
---|
18 | movem.l R6-R7,-(sp)
|
---|
19 | ~grp=R7
|
---|
20 | ~buf=-4
|
---|
21 | *line 47
|
---|
22 | move 8(R14),R7
|
---|
23 | asr #8,R7
|
---|
24 | and #255,R7
|
---|
25 | *line 49
|
---|
26 | move R7,R8
|
---|
27 | add.l R8,R8
|
---|
28 | add.l R8,R8
|
---|
29 | move.l #_grp2prt,R9
|
---|
30 | move 2(R8,R9.l),(sp)
|
---|
31 | move.l #_ebuf,-(sp)
|
---|
32 | jsr _numblk
|
---|
33 | addq.l #4,sp
|
---|
34 | *line 50
|
---|
35 | move #1,_ebflag
|
---|
36 | *line 52
|
---|
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_agch
|
---|
44 | .text
|
---|
45 | _ef_agch:
|
---|
46 | ~~ef_agch:
|
---|
47 | ~n=8
|
---|
48 | link R14,#0
|
---|
49 | movem.l R4-R7,-(sp)
|
---|
50 | ~tmpval=R7
|
---|
51 | ~grp=R6
|
---|
52 | ~i=R5
|
---|
53 | *line 67
|
---|
54 | move 8(R14),R6
|
---|
55 | asr #8,R6
|
---|
56 | and #255,R6
|
---|
57 | *line 69
|
---|
58 | clr.b 2+_ebuf
|
---|
59 | *line 70
|
---|
60 | clr _ebflag
|
---|
61 | *line 71
|
---|
62 | clr R7
|
---|
63 | *line 73
|
---|
64 | *line 73
|
---|
65 | cmp.b #32,_ebuf
|
---|
66 | bne L3
|
---|
67 | cmp.b #32,1+_ebuf
|
---|
68 | bne L3
|
---|
69 | *line 74
|
---|
70 | *line 75
|
---|
71 | move #-1,R7
|
---|
72 | *line 76
|
---|
73 | bra L4
|
---|
74 | L3:
|
---|
75 | *line 77
|
---|
76 | *line 78
|
---|
77 | *line 79
|
---|
78 | clr R5
|
---|
79 | bra L7
|
---|
80 | L8:
|
---|
81 | *line 80
|
---|
82 | *line 81
|
---|
83 | *line 82
|
---|
84 | move R5,R8
|
---|
85 | add.l #_ebuf,R8
|
---|
86 | cmp.b #32,(R8)
|
---|
87 | bne L9
|
---|
88 | *line 82
|
---|
89 | move R5,R8
|
---|
90 | add.l #_ebuf,R8
|
---|
91 | move.b #48,(R8)
|
---|
92 | *line 83
|
---|
93 | L9:
|
---|
94 | *line 84
|
---|
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 79
|
---|
103 | add #1,R5
|
---|
104 | L7:
|
---|
105 | *line 79
|
---|
106 | cmp #2,R5
|
---|
107 | blt L8
|
---|
108 | L5:
|
---|
109 | *line 85
|
---|
110 | *line 86
|
---|
111 | *line 87
|
---|
112 | *line 88
|
---|
113 | tst R7
|
---|
114 | beq L10000
|
---|
115 | cmp #16,R7
|
---|
116 | ble L10
|
---|
117 | L10000:*line 88
|
---|
118 | move #-1,R0
|
---|
119 | bra L2
|
---|
120 | L10:L4:
|
---|
121 | *line 91
|
---|
122 | move R6,R8
|
---|
123 | add.l R8,R8
|
---|
124 | add.l R8,R8
|
---|
125 | add.l #_grp2prt,R8
|
---|
126 | move R7,2(R8)
|
---|
127 | *line 93
|
---|
128 | jsr _modasg
|
---|
129 | *line 94
|
---|
130 | clr R0
|
---|
131 | bra L2
|
---|
132 | L2:tst.l (sp)+
|
---|
133 | movem.l (sp)+,R5-R7
|
---|
134 | unlk R14
|
---|
135 | rts
|
---|
136 | .globl _rd_agch
|
---|
137 | .text
|
---|
138 | _rd_agch:
|
---|
139 | ~~rd_agch:
|
---|
140 | ~nn=8
|
---|
141 | link R14,#-4
|
---|
142 | movem.l R5-R7,-(sp)
|
---|
143 | ~n=R7
|
---|
144 | ~grp=R6
|
---|
145 | ~buf=-4
|
---|
146 | *line 113
|
---|
147 | move 8(R14),R7
|
---|
148 | and #255,R7
|
---|
149 | *line 114
|
---|
150 | move 8(R14),R6
|
---|
151 | asr #8,R6
|
---|
152 | and #255,R6
|
---|
153 | *line 116
|
---|
154 | clr (sp)
|
---|
155 | jsr _vbank
|
---|
156 | *line 117
|
---|
157 | *line 118
|
---|
158 | move #14,(sp)
|
---|
159 | move R6,R8
|
---|
160 | add.l R8,R8
|
---|
161 | add.l R8,R8
|
---|
162 | move.l #_grp2prt,R9
|
---|
163 | move 2(R8,R9.l),-(sp)
|
---|
164 | move.l R14,-(sp)
|
---|
165 | sub.l #4,(sp)
|
---|
166 | jsr _numblk
|
---|
167 | addq.l #6,sp
|
---|
168 | move.l R0,-(sp)
|
---|
169 | move.l _cfetp,R8
|
---|
170 | move 2(R8),-(sp)
|
---|
171 | move.l _cfetp,R8
|
---|
172 | move (R8),-(sp)
|
---|
173 | move R7,R0
|
---|
174 | asl #4,R0
|
---|
175 | ext.l R0
|
---|
176 | move.l R0,R8
|
---|
177 | move.l #_adbox,R9
|
---|
178 | move 10(R8,R9.l),-(sp)
|
---|
179 | move R7,R0
|
---|
180 | asl #4,R0
|
---|
181 | ext.l R0
|
---|
182 | move.l R0,R8
|
---|
183 | move.l #_adbox,R9
|
---|
184 | move 8(R8,R9.l),-(sp)
|
---|
185 | move #64,-(sp)
|
---|
186 | move.l _asgob,-(sp)
|
---|
187 | jsr _vcputsv
|
---|
188 | adda.l #18,sp
|
---|
189 | *line 120
|
---|
190 | clr R0
|
---|
191 | bra L11
|
---|
192 | L11:tst.l (sp)+
|
---|
193 | movem.l (sp)+,R6-R7
|
---|
194 | unlk R14
|
---|
195 | rts
|
---|
196 | .globl _nd_agch
|
---|
197 | .text
|
---|
198 | _nd_agch:
|
---|
199 | ~~nd_agch:
|
---|
200 | ~k=R7
|
---|
201 | ~nn=8
|
---|
202 | link R14,#0
|
---|
203 | movem.l R5-R7,-(sp)
|
---|
204 | ~n=R6
|
---|
205 | *line 136
|
---|
206 | move 10(R14),R7
|
---|
207 | *line 136
|
---|
208 | move 8(R14),R6
|
---|
209 | and #255,R6
|
---|
210 | *line 137
|
---|
211 | move R7,R0
|
---|
212 | add #48,R0
|
---|
213 | move _stccol,R9
|
---|
214 | move.l _cfetp,R10
|
---|
215 | move 2(R10),R10
|
---|
216 | sub R10,R9
|
---|
217 | add.l #_ebuf,R9
|
---|
218 | move.b R0,(R9)
|
---|
219 | *line 138
|
---|
220 | clr.b 2+_ebuf
|
---|
221 | *line 140
|
---|
222 | move R7,R0
|
---|
223 | add #48,R0
|
---|
224 | move.b R0,_dspbuf
|
---|
225 | *line 141
|
---|
226 | clr.b 1+_dspbuf
|
---|
227 | *line 143
|
---|
228 | clr (sp)
|
---|
229 | jsr _vbank
|
---|
230 | *line 144
|
---|
231 | *line 145
|
---|
232 | move #14,(sp)
|
---|
233 | move.l #_dspbuf,-(sp)
|
---|
234 | move _stccol,-(sp)
|
---|
235 | move _stcrow,-(sp)
|
---|
236 | move R6,R0
|
---|
237 | asl #4,R0
|
---|
238 | ext.l R0
|
---|
239 | move.l R0,R8
|
---|
240 | move.l #_adbox,R9
|
---|
241 | move 10(R8,R9.l),-(sp)
|
---|
242 | move #12,-(sp)
|
---|
243 | move #64,-(sp)
|
---|
244 | move.l _asgob,-(sp)
|
---|
245 | jsr _vcputsv
|
---|
246 | adda.l #18,sp
|
---|
247 | *line 147
|
---|
248 | jsr _advacur
|
---|
249 | *line 148
|
---|
250 | clr R0
|
---|
251 | bra L12
|
---|
252 | L12:tst.l (sp)+
|
---|
253 | movem.l (sp)+,R6-R7
|
---|
254 | unlk R14
|
---|
255 | rts
|
---|
256 | .data
|
---|
Note:
See
TracBrowser
for help on using the repository browser.