Last change
on this file since ca867c1 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 _instob
|
---|
7 | .globl _stccol
|
---|
8 | .globl _curvce
|
---|
9 | .globl _idbox
|
---|
10 | .globl _dspbuf
|
---|
11 | .globl _et_ivce
|
---|
12 | .text
|
---|
13 | _et_ivce:
|
---|
14 | ~~et_ivce:
|
---|
15 | ~n=8
|
---|
16 | link R14,#-4
|
---|
17 | *line 42
|
---|
18 | move _curvce,(sp)
|
---|
19 | add #1,(sp)
|
---|
20 | move.l #L2,-(sp)
|
---|
21 | move.l #_ebuf,-(sp)
|
---|
22 | jsr _sprintf
|
---|
23 | addq.l #8,sp
|
---|
24 | *line 43
|
---|
25 | move #1,_ebflag
|
---|
26 | *line 45
|
---|
27 | clr R0
|
---|
28 | bra L1
|
---|
29 | L1:unlk R14
|
---|
30 | rts
|
---|
31 | .globl _ef_ivce
|
---|
32 | .text
|
---|
33 | _ef_ivce:
|
---|
34 | ~~ef_ivce:
|
---|
35 | ~n=8
|
---|
36 | link R14,#0
|
---|
37 | movem.l R5-R7,-(sp)
|
---|
38 | ~i=R7
|
---|
39 | ~tmpval=R6
|
---|
40 | *line 63
|
---|
41 | clr.b 2+_ebuf
|
---|
42 | *line 64
|
---|
43 | clr _ebflag
|
---|
44 | *line 66
|
---|
45 | clr R6
|
---|
46 | *line 68
|
---|
47 | clr R7
|
---|
48 | bra L6
|
---|
49 | L7:
|
---|
50 | *line 69
|
---|
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 68
|
---|
59 | add #1,R7
|
---|
60 | L6:
|
---|
61 | *line 68
|
---|
62 | cmp #2,R7
|
---|
63 | blt L7
|
---|
64 | L4:
|
---|
65 | *line 71
|
---|
66 | *line 72
|
---|
67 | tst R6
|
---|
68 | beq L10000
|
---|
69 | cmp #12,R6
|
---|
70 | ble L8
|
---|
71 | L10000:*line 72
|
---|
72 | move #-1,R0
|
---|
73 | bra L3
|
---|
74 | *line 73
|
---|
75 | L8:
|
---|
76 | *line 74
|
---|
77 | move R6,(sp)
|
---|
78 | sub #1,(sp)
|
---|
79 | jsr _newvce
|
---|
80 | *line 75
|
---|
81 | jsr _allwins
|
---|
82 | *line 76
|
---|
83 | clr R0
|
---|
84 | bra L3
|
---|
85 | L3:tst.l (sp)+
|
---|
86 | movem.l (sp)+,R6-R7
|
---|
87 | unlk R14
|
---|
88 | rts
|
---|
89 | .globl _rd_ivce
|
---|
90 | .text
|
---|
91 | _rd_ivce:
|
---|
92 | ~~rd_ivce:
|
---|
93 | ~n=8
|
---|
94 | link R14,#-4
|
---|
95 | *line 94
|
---|
96 | move _curvce,(sp)
|
---|
97 | add #1,(sp)
|
---|
98 | move.l #L10,-(sp)
|
---|
99 | move.l #_dspbuf,-(sp)
|
---|
100 | jsr _sprintf
|
---|
101 | addq.l #8,sp
|
---|
102 | *line 96
|
---|
103 | clr (sp)
|
---|
104 | jsr _vbank
|
---|
105 | *line 98
|
---|
106 | *line 99
|
---|
107 | move #14,(sp)
|
---|
108 | move.l #_dspbuf,-(sp)
|
---|
109 | move 8(R14),R0
|
---|
110 | asl #4,R0
|
---|
111 | ext.l R0
|
---|
112 | move.l R0,R8
|
---|
113 | move.l #_idbox,R9
|
---|
114 | move 14(R8,R9.l),-(sp)
|
---|
115 | add #6,(sp)
|
---|
116 | move 8(R14),R0
|
---|
117 | asl #4,R0
|
---|
118 | ext.l R0
|
---|
119 | move.l R0,R8
|
---|
120 | move.l #_idbox,R9
|
---|
121 | move 12(R8,R9.l),-(sp)
|
---|
122 | move 8(R14),R0
|
---|
123 | asl #4,R0
|
---|
124 | ext.l R0
|
---|
125 | move.l R0,R8
|
---|
126 | move.l #_idbox,R9
|
---|
127 | move 10(R8,R9.l),-(sp)
|
---|
128 | move 8(R14),R0
|
---|
129 | asl #4,R0
|
---|
130 | ext.l R0
|
---|
131 | move.l R0,R8
|
---|
132 | move.l #_idbox,R9
|
---|
133 | move 8(R8,R9.l),-(sp)
|
---|
134 | move #64,-(sp)
|
---|
135 | move.l _instob,-(sp)
|
---|
136 | jsr _vcputsv
|
---|
137 | adda.l #18,sp
|
---|
138 | *line 101
|
---|
139 | clr R0
|
---|
140 | bra L9
|
---|
141 | L9:unlk R14
|
---|
142 | rts
|
---|
143 | .globl _nd_ivce
|
---|
144 | .text
|
---|
145 | _nd_ivce:
|
---|
146 | ~~nd_ivce:
|
---|
147 | ~k=R7
|
---|
148 | ~n=8
|
---|
149 | link R14,#0
|
---|
150 | movem.l R5-R7,-(sp)
|
---|
151 | ~ec=R6
|
---|
152 | *line 120
|
---|
153 | move 10(R14),R7
|
---|
154 | *line 120
|
---|
155 | move _stccol,R6
|
---|
156 | move.l _cfetp,R8
|
---|
157 | move 2(R8),R0
|
---|
158 | sub R0,R6
|
---|
159 | *line 121
|
---|
160 | move R7,R0
|
---|
161 | add #48,R0
|
---|
162 | move R6,R9
|
---|
163 | add.l #_ebuf,R9
|
---|
164 | move.b R0,(R9)
|
---|
165 | *line 122
|
---|
166 | clr.b 2+_ebuf
|
---|
167 | *line 124
|
---|
168 | move R7,R0
|
---|
169 | add #48,R0
|
---|
170 | move.b R0,_dspbuf
|
---|
171 | *line 125
|
---|
172 | clr.b 1+_dspbuf
|
---|
173 | *line 127
|
---|
174 | clr (sp)
|
---|
175 | jsr _vbank
|
---|
176 | *line 129
|
---|
177 | *line 130
|
---|
178 | move #14,(sp)
|
---|
179 | move.l #_dspbuf,-(sp)
|
---|
180 | move _stccol,-(sp)
|
---|
181 | move 8(R14),R0
|
---|
182 | asl #4,R0
|
---|
183 | ext.l R0
|
---|
184 | move.l R0,R8
|
---|
185 | move.l #_idbox,R9
|
---|
186 | move 12(R8,R9.l),-(sp)
|
---|
187 | move 8(R14),R0
|
---|
188 | asl #4,R0
|
---|
189 | ext.l R0
|
---|
190 | move.l R0,R8
|
---|
191 | move.l #_idbox,R9
|
---|
192 | move 10(R8,R9.l),-(sp)
|
---|
193 | move #10,-(sp)
|
---|
194 | move #64,-(sp)
|
---|
195 | move.l _instob,-(sp)
|
---|
196 | jsr _vcputsv
|
---|
197 | adda.l #18,sp
|
---|
198 | *line 132
|
---|
199 | jsr _advicur
|
---|
200 | *line 134
|
---|
201 | clr R0
|
---|
202 | bra L11
|
---|
203 | L11:tst.l (sp)+
|
---|
204 | movem.l (sp)+,R6-R7
|
---|
205 | unlk R14
|
---|
206 | rts
|
---|
207 | .data
|
---|
208 | L2:.dc.b $25,$30,$32,$64,$0
|
---|
209 | L10:.dc.b $25,$30,$32,$64,$0
|
---|
Note:
See
TracBrowser
for help on using the repository browser.