Last change
on this file since 7bb1284 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 _io_time
|
---|
2 | .globl _io_lcd
|
---|
3 | .globl _io_ser
|
---|
4 | .globl _io_midi
|
---|
5 | .globl _io_disk
|
---|
6 | .globl _io_tone
|
---|
7 | .globl _io_leds
|
---|
8 | .globl _io_kbrd
|
---|
9 | .globl _lcd_a0
|
---|
10 | .globl _lcd_a1
|
---|
11 | .globl _io_vreg
|
---|
12 | .globl _io_vraw
|
---|
13 | .globl _io_vram
|
---|
14 | .globl _io_fpu
|
---|
15 | .globl _v_regs
|
---|
16 | .globl _v_odtab
|
---|
17 | .globl _v_actab
|
---|
18 | .globl _v_ct0
|
---|
19 | .globl _v_gt1
|
---|
20 | .globl _v_score
|
---|
21 | .globl _v_cgtab
|
---|
22 | .globl _v_curs0
|
---|
23 | .globl _v_curs1
|
---|
24 | .globl _v_curs2
|
---|
25 | .globl _v_curs3
|
---|
26 | .globl _v_curs4
|
---|
27 | .globl _v_curs5
|
---|
28 | .globl _v_curs6
|
---|
29 | .globl _v_curs7
|
---|
30 | .globl _v_tcur
|
---|
31 | .globl _v_kbobj
|
---|
32 | .globl _v_lnobj
|
---|
33 | .globl _v_win0
|
---|
34 | .globl _v_cur
|
---|
35 | .globl _fc_sw
|
---|
36 | .globl _fc_val
|
---|
37 | .globl _eqgaint
|
---|
38 | .data
|
---|
39 | _eqgaint:
|
---|
40 | .dc.b $0
|
---|
41 | .dc.b $20
|
---|
42 | .dc.b $10
|
---|
43 | .dc.b $8
|
---|
44 | .dc.b $4
|
---|
45 | .dc.b $2
|
---|
46 | .dc.b $12
|
---|
47 | .dc.b $2A
|
---|
48 | .dc.b $16
|
---|
49 | .dc.b $1
|
---|
50 | .dc.b $29
|
---|
51 | .dc.b $2D
|
---|
52 | .dc.b $2F
|
---|
53 | .even
|
---|
54 | .globl _puteq
|
---|
55 | .text
|
---|
56 | _puteq:
|
---|
57 | ~~puteq:
|
---|
58 | ~byte=R7
|
---|
59 | link R14,#0
|
---|
60 | movem.l R4-R7/R13-R13,-(sp)
|
---|
61 | ~i=R6
|
---|
62 | ~psg=R13
|
---|
63 | ~eqdata=R5
|
---|
64 | *line 81
|
---|
65 | move.b 9(R14),R7
|
---|
66 | *line 81
|
---|
67 | move.l #_io_tone,R13
|
---|
68 | *line 83
|
---|
69 | move.b #7,(R13)
|
---|
70 | *line 84
|
---|
71 | move.b #191,2(R13)
|
---|
72 | *line 86
|
---|
73 | move.b #15,(R13)
|
---|
74 | *line 87
|
---|
75 | move.b (R13),R5
|
---|
76 | and.b #-29,R5
|
---|
77 | or.b #20,R5
|
---|
78 | *line 89
|
---|
79 | clr R6
|
---|
80 | bra L4
|
---|
81 | L5:
|
---|
82 | *line 90
|
---|
83 | *line 91
|
---|
84 | *line 92
|
---|
85 | btst #0,R7
|
---|
86 | beq L6
|
---|
87 | *line 92
|
---|
88 | or.b #8,R5
|
---|
89 | *line 93
|
---|
90 | bra L7
|
---|
91 | L6:
|
---|
92 | *line 94
|
---|
93 | and.b #-9,R5
|
---|
94 | L7:
|
---|
95 | *line 95
|
---|
96 | *line 96
|
---|
97 | and.b #-17,R5
|
---|
98 | *line 97
|
---|
99 | *line 98
|
---|
100 | move.b #15,(R13)
|
---|
101 | *line 99
|
---|
102 | move.b R5,2(R13)
|
---|
103 | *line 100
|
---|
104 | *line 101
|
---|
105 | or.b #16,R5
|
---|
106 | *line 102
|
---|
107 | *line 103
|
---|
108 | move.b #15,(R13)
|
---|
109 | *line 104
|
---|
110 | move.b R5,2(R13)
|
---|
111 | *line 105
|
---|
112 | *line 106
|
---|
113 | asr.b #1,R7
|
---|
114 | L3:
|
---|
115 | *line 89
|
---|
116 | add #1,R6
|
---|
117 | L4:
|
---|
118 | *line 89
|
---|
119 | cmp #8,R6
|
---|
120 | blt L5
|
---|
121 | L2:
|
---|
122 | *line 109
|
---|
123 | and.b #-5,R5
|
---|
124 | *line 111
|
---|
125 | move.b #15,(R13)
|
---|
126 | *line 112
|
---|
127 | move.b R5,2(R13)
|
---|
128 | *line 114
|
---|
129 | or.b #4,R5
|
---|
130 | *line 116
|
---|
131 | move.b #15,(R13)
|
---|
132 | *line 117
|
---|
133 | move.b R5,2(R13)
|
---|
134 | L1:tst.l (sp)+
|
---|
135 | movem.l (sp)+,R5-R7/R13-R13
|
---|
136 | unlk R14
|
---|
137 | rts
|
---|
138 | .globl _sendeq
|
---|
139 | .text
|
---|
140 | _sendeq:
|
---|
141 | ~~sendeq:
|
---|
142 | ~band=9
|
---|
143 | ~gain=11
|
---|
144 | link R14,#-4
|
---|
145 | *line 126
|
---|
146 | move.b 9(R14),R0
|
---|
147 | ext.w R0
|
---|
148 | move R0,(sp)
|
---|
149 | jsr _puteq
|
---|
150 | *line 127
|
---|
151 | move.b 11(R14),R0
|
---|
152 | ext.w R0
|
---|
153 | move R0,(sp)
|
---|
154 | jsr _puteq
|
---|
155 | L8:unlk R14
|
---|
156 | rts
|
---|
157 | .globl _gain2eq
|
---|
158 | .text
|
---|
159 | _gain2eq:
|
---|
160 | ~~gain2eq:
|
---|
161 | ~gain=8
|
---|
162 | link R14,#0
|
---|
163 | movem.l R6-R7,-(sp)
|
---|
164 | ~eqdat=R7
|
---|
165 | *line 136
|
---|
166 | *line 137
|
---|
167 | tst 8(R14)
|
---|
168 | ble L10
|
---|
169 | *line 137
|
---|
170 | move.l #_eqgaint,R8
|
---|
171 | move 8(R14),R9
|
---|
172 | add.l R9,R8
|
---|
173 | move.b (R8),R7
|
---|
174 | or.b #64,R7
|
---|
175 | *line 138
|
---|
176 | bra L11
|
---|
177 | L10:
|
---|
178 | *line 139
|
---|
179 | move 8(R14),R0
|
---|
180 | neg R0
|
---|
181 | ext.l R0
|
---|
182 | add.l #_eqgaint,R0
|
---|
183 | move.l R0,R8
|
---|
184 | move.b (R8),R7
|
---|
185 | L11:
|
---|
186 | *line 141
|
---|
187 | move.b R7,R0
|
---|
188 | ext.w R0
|
---|
189 | bra L9
|
---|
190 | L9:tst.l (sp)+
|
---|
191 | movem.l (sp)+,R7-R7
|
---|
192 | unlk R14
|
---|
193 | rts
|
---|
194 | .data
|
---|
Note:
See
TracBrowser
for help on using the repository browser.