Last change
on this file since 0170798 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 _io_time
|
---|
7 | .globl _io_lcd
|
---|
8 | .globl _io_ser
|
---|
9 | .globl _io_midi
|
---|
10 | .globl _io_disk
|
---|
11 | .globl _io_tone
|
---|
12 | .globl _io_leds
|
---|
13 | .globl _io_kbrd
|
---|
14 | .globl _lcd_a0
|
---|
15 | .globl _lcd_a1
|
---|
16 | .globl _io_vreg
|
---|
17 | .globl _io_vraw
|
---|
18 | .globl _io_vram
|
---|
19 | .globl _io_fpu
|
---|
20 | .globl _v_regs
|
---|
21 | .globl _v_odtab
|
---|
22 | .globl _v_actab
|
---|
23 | .globl _v_ct0
|
---|
24 | .globl _v_gt1
|
---|
25 | .globl _v_score
|
---|
26 | .globl _v_cgtab
|
---|
27 | .globl _v_curs0
|
---|
28 | .globl _v_curs1
|
---|
29 | .globl _v_curs2
|
---|
30 | .globl _v_curs3
|
---|
31 | .globl _v_curs4
|
---|
32 | .globl _v_curs5
|
---|
33 | .globl _v_curs6
|
---|
34 | .globl _v_curs7
|
---|
35 | .globl _v_tcur
|
---|
36 | .globl _v_kbobj
|
---|
37 | .globl _v_lnobj
|
---|
38 | .globl _v_win0
|
---|
39 | .globl _v_cur
|
---|
40 | .globl _fc_sw
|
---|
41 | .globl _fc_val
|
---|
42 | .globl _obj8
|
---|
43 | .globl _curscor
|
---|
44 | .globl _insmode
|
---|
45 | .globl _stccol
|
---|
46 | .globl _dspbuf
|
---|
47 | .globl _et_scor
|
---|
48 | .text
|
---|
49 | _et_scor:
|
---|
50 | ~~et_scor:
|
---|
51 | link R14,#-4
|
---|
52 | *line 36
|
---|
53 | move _curscor,(sp)
|
---|
54 | add #1,(sp)
|
---|
55 | move.l #L2,-(sp)
|
---|
56 | move.l #_ebuf,-(sp)
|
---|
57 | jsr _sprintf
|
---|
58 | addq.l #8,sp
|
---|
59 | *line 37
|
---|
60 | move #1,_ebflag
|
---|
61 | *line 39
|
---|
62 | clr R0
|
---|
63 | bra L1
|
---|
64 | L1:unlk R14
|
---|
65 | rts
|
---|
66 | .globl _ef_scor
|
---|
67 | .text
|
---|
68 | _ef_scor:
|
---|
69 | ~~ef_scor:
|
---|
70 | link R14,#0
|
---|
71 | movem.l R6-R7,-(sp)
|
---|
72 | ~ival=R7
|
---|
73 | *line 56
|
---|
74 | clr.b 2+_ebuf
|
---|
75 | *line 57
|
---|
76 | move.b _ebuf,R7
|
---|
77 | ext.w R7
|
---|
78 | add #-48,R7
|
---|
79 | muls #10,R7
|
---|
80 | move.b 1+_ebuf,R0
|
---|
81 | ext.w R0
|
---|
82 | add R0,R7
|
---|
83 | add #-48,R7
|
---|
84 | *line 59
|
---|
85 | clr _ebflag
|
---|
86 | *line 61
|
---|
87 | *line 62
|
---|
88 | cmp #20,R7
|
---|
89 | bgt L10000
|
---|
90 | tst R7
|
---|
91 | bne L4
|
---|
92 | L10000:*line 62
|
---|
93 | move #-1,R0
|
---|
94 | bra L3
|
---|
95 | *line 63
|
---|
96 | L4:
|
---|
97 | *line 64
|
---|
98 | *line 64
|
---|
99 | tst _insmode
|
---|
100 | beq L5
|
---|
101 | *line 65
|
---|
102 | *line 66
|
---|
103 | jsr _icancel
|
---|
104 | *line 67
|
---|
105 | jsr _dsimode
|
---|
106 | *line 68
|
---|
107 | *line 69
|
---|
108 | L5:
|
---|
109 | *line 70
|
---|
110 | move R7,(sp)
|
---|
111 | sub #1,(sp)
|
---|
112 | jsr _selscor
|
---|
113 | *line 71
|
---|
114 | jsr _sdwins
|
---|
115 | *line 72
|
---|
116 | clr R0
|
---|
117 | bra L3
|
---|
118 | L3:tst.l (sp)+
|
---|
119 | movem.l (sp)+,R7-R7
|
---|
120 | unlk R14
|
---|
121 | rts
|
---|
122 | .globl _rd_scor
|
---|
123 | .text
|
---|
124 | _rd_scor:
|
---|
125 | ~~rd_scor:
|
---|
126 | link R14,#-4
|
---|
127 | *line 84
|
---|
128 | move _curscor,(sp)
|
---|
129 | add #1,(sp)
|
---|
130 | move.l #L7,-(sp)
|
---|
131 | move.l #_dspbuf,-(sp)
|
---|
132 | jsr _sprintf
|
---|
133 | addq.l #8,sp
|
---|
134 | *line 86
|
---|
135 | *line 87
|
---|
136 | clr R0
|
---|
137 | move 10+_v_regs,R0
|
---|
138 | and #384,R0
|
---|
139 | beq L8
|
---|
140 | *line 87
|
---|
141 | clr (sp)
|
---|
142 | jsr _vbank
|
---|
143 | *line 88
|
---|
144 | L8:
|
---|
145 | *line 89
|
---|
146 | move #19,(sp)
|
---|
147 | move.l #_dspbuf,-(sp)
|
---|
148 | move #7,-(sp)
|
---|
149 | move #8,-(sp)
|
---|
150 | move.l _obj8,-(sp)
|
---|
151 | jsr _vputs
|
---|
152 | adda.l #12,sp
|
---|
153 | *line 91
|
---|
154 | clr R0
|
---|
155 | bra L6
|
---|
156 | L6:unlk R14
|
---|
157 | rts
|
---|
158 | .globl _nd_scor
|
---|
159 | .text
|
---|
160 | _nd_scor:
|
---|
161 | ~~nd_scor:
|
---|
162 | ~n=8
|
---|
163 | ~k=10
|
---|
164 | link R14,#0
|
---|
165 | movem.l R6-R7,-(sp)
|
---|
166 | ~ec=R7
|
---|
167 | *line 109
|
---|
168 | move _stccol,R7
|
---|
169 | move.l _cfetp,R8
|
---|
170 | move 2(R8),R0
|
---|
171 | sub R0,R7
|
---|
172 | *line 110
|
---|
173 | move 10(R14),R0
|
---|
174 | add #48,R0
|
---|
175 | move R7,R9
|
---|
176 | add.l #_ebuf,R9
|
---|
177 | move.b R0,(R9)
|
---|
178 | *line 112
|
---|
179 | *line 113
|
---|
180 | clr R0
|
---|
181 | move 10+_v_regs,R0
|
---|
182 | and #384,R0
|
---|
183 | beq L10
|
---|
184 | *line 113
|
---|
185 | clr (sp)
|
---|
186 | jsr _vbank
|
---|
187 | *line 114
|
---|
188 | L10:
|
---|
189 | *line 115
|
---|
190 | move #99,(sp)
|
---|
191 | move 10(R14),-(sp)
|
---|
192 | add #48,(sp)
|
---|
193 | move _stccol,-(sp)
|
---|
194 | move #8,-(sp)
|
---|
195 | move.l _obj8,-(sp)
|
---|
196 | jsr _vputc
|
---|
197 | adda.l #10,sp
|
---|
198 | *line 116
|
---|
199 | jsr _advscur
|
---|
200 | *line 118
|
---|
201 | clr R0
|
---|
202 | bra L9
|
---|
203 | L9:tst.l (sp)+
|
---|
204 | movem.l (sp)+,R7-R7
|
---|
205 | unlk R14
|
---|
206 | rts
|
---|
207 | .data
|
---|
208 | L2:.dc.b $25,$30,$32,$2E,$32,$64,$0
|
---|
209 | L7:.dc.b $25,$30,$32,$2E,$32,$64,$0
|
---|
Note:
See
TracBrowser
for help on using the repository browser.