Last change
on this file since ad89950 was 7bf3856, checked in by Thomas Lopatic <thomas@…>, 7 years ago |
Added Alcyon C reference output.
|
-
Property mode
set to
100644
|
File size:
2.4 KB
|
Line | |
---|
1 | .globl _ebflag
|
---|
2 | .globl _ebuf
|
---|
3 | .globl _curfet
|
---|
4 | .globl _cfetp
|
---|
5 | .globl _infetp
|
---|
6 | .globl _waveob
|
---|
7 | .globl _stcrow
|
---|
8 | .globl _stccol
|
---|
9 | .globl _curwslt
|
---|
10 | .globl _wdbox
|
---|
11 | .globl _dspbuf
|
---|
12 | .globl _et_wslt
|
---|
13 | .text
|
---|
14 | _et_wslt:
|
---|
15 | ~~et_wslt:
|
---|
16 | ~n=8
|
---|
17 | link R14,#-4
|
---|
18 | *line 44
|
---|
19 | move _curwslt,(sp)
|
---|
20 | add #65,(sp)
|
---|
21 | move.l #L2,-(sp)
|
---|
22 | move.l #_ebuf,-(sp)
|
---|
23 | jsr _sprintf
|
---|
24 | addq.l #8,sp
|
---|
25 | *line 45
|
---|
26 | move #1,_ebflag
|
---|
27 | *line 47
|
---|
28 | clr R0
|
---|
29 | bra L1
|
---|
30 | L1:unlk R14
|
---|
31 | rts
|
---|
32 | .globl _ef_wslt
|
---|
33 | .text
|
---|
34 | _ef_wslt:
|
---|
35 | ~~ef_wslt:
|
---|
36 | ~n=8
|
---|
37 | link R14,#-4
|
---|
38 | *line 60
|
---|
39 | clr.b 1+_ebuf
|
---|
40 | *line 61
|
---|
41 | clr _ebflag
|
---|
42 | *line 63
|
---|
43 | move.b _ebuf,R0
|
---|
44 | ext.w R0
|
---|
45 | add #-65,R0
|
---|
46 | move R0,_curwslt
|
---|
47 | *line 69
|
---|
48 | jsr _newws
|
---|
49 | *line 70
|
---|
50 | jsr _dsnewws
|
---|
51 | *line 71
|
---|
52 | clr R0
|
---|
53 | bra L3
|
---|
54 | L3:unlk R14
|
---|
55 | rts
|
---|
56 | .globl _rd_wslt
|
---|
57 | .text
|
---|
58 | _rd_wslt:
|
---|
59 | ~~rd_wslt:
|
---|
60 | ~nn=8
|
---|
61 | link R14,#0
|
---|
62 | movem.l R6-R7,-(sp)
|
---|
63 | ~n=R7
|
---|
64 | *line 89
|
---|
65 | move 8(R14),R7
|
---|
66 | and #255,R7
|
---|
67 | *line 90
|
---|
68 | move _curwslt,(sp)
|
---|
69 | add #65,(sp)
|
---|
70 | move.l #L5,-(sp)
|
---|
71 | move.l #_dspbuf,-(sp)
|
---|
72 | jsr _sprintf
|
---|
73 | addq.l #8,sp
|
---|
74 | *line 92
|
---|
75 | clr (sp)
|
---|
76 | jsr _vbank
|
---|
77 | *line 93
|
---|
78 | *line 94
|
---|
79 | move #14,(sp)
|
---|
80 | move.l #_dspbuf,-(sp)
|
---|
81 | move R7,R0
|
---|
82 | asl #4,R0
|
---|
83 | ext.l R0
|
---|
84 | move.l R0,R8
|
---|
85 | move.l #_wdbox,R9
|
---|
86 | move 14(R8,R9.l),-(sp)
|
---|
87 | add #19,(sp)
|
---|
88 | move R7,R0
|
---|
89 | asl #4,R0
|
---|
90 | ext.l R0
|
---|
91 | move.l R0,R8
|
---|
92 | move.l #_wdbox,R9
|
---|
93 | move 12(R8,R9.l),-(sp)
|
---|
94 | add #1,(sp)
|
---|
95 | move R7,R0
|
---|
96 | asl #4,R0
|
---|
97 | ext.l R0
|
---|
98 | move.l R0,R8
|
---|
99 | move.l #_wdbox,R9
|
---|
100 | move 10(R8,R9.l),-(sp)
|
---|
101 | move R7,R0
|
---|
102 | asl #4,R0
|
---|
103 | ext.l R0
|
---|
104 | move.l R0,R8
|
---|
105 | move.l #_wdbox,R9
|
---|
106 | move 8(R8,R9.l),-(sp)
|
---|
107 | move #64,-(sp)
|
---|
108 | move.l _waveob,-(sp)
|
---|
109 | jsr _vcputsv
|
---|
110 | adda.l #18,sp
|
---|
111 | *line 96
|
---|
112 | clr R0
|
---|
113 | bra L4
|
---|
114 | L4:tst.l (sp)+
|
---|
115 | movem.l (sp)+,R7-R7
|
---|
116 | unlk R14
|
---|
117 | rts
|
---|
118 | .globl _nd_wslt
|
---|
119 | .text
|
---|
120 | _nd_wslt:
|
---|
121 | ~~nd_wslt:
|
---|
122 | ~k=R7
|
---|
123 | ~nn=8
|
---|
124 | link R14,#0
|
---|
125 | movem.l R5-R7,-(sp)
|
---|
126 | ~n=R6
|
---|
127 | *line 112
|
---|
128 | move 10(R14),R7
|
---|
129 | *line 112
|
---|
130 | move 8(R14),R6
|
---|
131 | and #255,R6
|
---|
132 | *line 118
|
---|
133 | *line 119
|
---|
134 | cmp #1,R7
|
---|
135 | ble L7
|
---|
136 | *line 119
|
---|
137 | move #-1,R0
|
---|
138 | bra L6
|
---|
139 | *line 120
|
---|
140 | L7:
|
---|
141 | *line 121
|
---|
142 | move R7,R0
|
---|
143 | add #65,R0
|
---|
144 | move.b R0,_ebuf
|
---|
145 | *line 122
|
---|
146 | clr.b 1+_ebuf
|
---|
147 | *line 124
|
---|
148 | move R7,R0
|
---|
149 | add #65,R0
|
---|
150 | move.b R0,_dspbuf
|
---|
151 | *line 125
|
---|
152 | clr.b 1+_dspbuf
|
---|
153 | *line 131
|
---|
154 | clr (sp)
|
---|
155 | jsr _vbank
|
---|
156 | *line 132
|
---|
157 | *line 133
|
---|
158 | move #14,(sp)
|
---|
159 | move.l #_dspbuf,-(sp)
|
---|
160 | move _stccol,-(sp)
|
---|
161 | move _stcrow,-(sp)
|
---|
162 | move R6,R0
|
---|
163 | asl #4,R0
|
---|
164 | ext.l R0
|
---|
165 | move.l R0,R8
|
---|
166 | move.l #_wdbox,R9
|
---|
167 | move 10(R8,R9.l),-(sp)
|
---|
168 | move #12,-(sp)
|
---|
169 | move #64,-(sp)
|
---|
170 | move.l _waveob,-(sp)
|
---|
171 | jsr _vcputsv
|
---|
172 | adda.l #18,sp
|
---|
173 | *line 135
|
---|
174 | jsr _advwcur
|
---|
175 | *line 136
|
---|
176 | clr R0
|
---|
177 | bra L6
|
---|
178 | L6:tst.l (sp)+
|
---|
179 | movem.l (sp)+,R6-R7
|
---|
180 | unlk R14
|
---|
181 | rts
|
---|
182 | .data
|
---|
183 | L2:.dc.b $25,$63,$0
|
---|
184 | L5:.dc.b $25,$63,$0
|
---|
Note:
See
TracBrowser
for help on using the repository browser.