-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaudio_tabs.asm
360 lines (347 loc) · 22.6 KB
/
audio_tabs.asm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
;****************************************************************************
;
; MC70 - Firmware for the Motorola MC micro trunking radio
; to use it as an Amateur-Radio transceiver
;
; Copyright (C) 2004 - 2012 Felix Erckenbrecht, DG1YFE
;
; This file is part of MC70.
;
; MC70 is free software: you can redistribute it and/or modify
; it under the terms of the GNU General Public License as published by
; the Free Software Foundation, either version 3 of the License, or
; (at your option) any later version.
;
; MC70 is distributed in the hope that it will be useful,
; but WITHOUT ANY WARRANTY; without even the implied warranty of
; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
; GNU General Public License for more details.
;
; You should have received a copy of the GNU General Public License
; along with MC70. If not, see <http://www.gnu.org/licenses/>.
;
;
;
;****************************************************************************
.ORG $A000
#ifdef EVA9
.ORG $F000
; Remark:
; these tables only make sense in EVA9 radios, since they posess a
; 4 Bit R2R DAC (for signalling) and a 3 Bit R2R DAC (for private line / CTCSS)
; tables are 256 Bytes to save CPU cycles (e.g. avoid "and #31")
;------
; Sine tables for DTMF Tone generation
; tones of the high group should be 1-4 dB louder than
; tones of the low group according to ETSI ES 201 235-2
; These tables provide tones different by 3.5 dB
sin_tab_lo
.db 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5,
.db 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6,
.db 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6,
.db 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
.db 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 6, 6,
.db 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6,
.db 6, 6, 6, 6, 6, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
.db 5, 5, 5, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
.db 4, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 2, 2,
.db 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1,
.db 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
.db 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
.db 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1,
.db 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
.db 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
.db 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3
sin_tab_hi
.db 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5,
.db 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6,
.db 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
.db 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
.db 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
.db 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 6, 6,
.db 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 5, 5, 5, 5, 5,
.db 5, 5, 5, 5, 5, 5, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
.db 4, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 2, 2, 2, 2, 2,
.db 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
.db 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
.db 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
.db 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
.db 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1,
.db 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2,
.db 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
sin_tab4
.db 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9,10,10,10,10,10,
.db 11,11,11,11,11,11,12,12,12,12,12,12,13,13,13,13,
.db 13,13,13,14,14,14,14,14,14,14,14,14,15,15,15,15,
.db 15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
.db 15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
.db 15,15,15,15,15,14,14,14,14,14,14,14,14,14,13,13,
.db 13,13,13,13,13,12,12,12,12,12,12,11,11,11,11,11,
.db 11,10,10,10,10,10, 9, 9, 9, 9, 9, 8, 8, 8, 8, 8,
.db 8, 7, 7, 7, 7, 7, 6, 6, 6, 6, 6, 5, 5, 5, 5, 5,
.db 4, 4, 4, 4, 4, 4, 3, 3, 3, 3, 3, 3, 2, 2, 2, 2,
.db 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0,
.db 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
.db 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
.db 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2,
.db 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4,
.db 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7
; Sine table for second DAC (Port 6 Bit 5-7)
; Values are already shifted to avoid shifting in software and save some CPU cycles
sin_256_3_0dB_pl
.db 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 80, 80, 80, 80, 80,
.db 80, 80, 80, 80, 80, 80, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96,
.db 96, 96, 96,112,112,112,112,112,112,112,112,112,112,112,112,112,
.db 112,112,112,112,112,112,112,112,112,112,112,112,112,112,112,112,
.db 112,112,112,112,112,112,112,112,112,112,112,112,112,112,112,112,
.db 112,112,112,112,112,112,112,112,112,112,112,112,112,112, 96, 96,
.db 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 80, 80, 80, 80, 80,
.db 80, 80, 80, 80, 80, 80, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64,
.db 64, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 32, 32, 32, 32, 32,
.db 32, 32, 32, 32, 32, 32, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16,
.db 16, 16, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
.db 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
.db 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
.db 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 16,
.db 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 32, 32, 32, 32, 32,
.db 32, 32, 32, 32, 32, 32, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48
#else
; EVA5 only has two 1 Bit DAC
; if also using tristate one can attain about 3 Bit resolution with increased
; software/CPU requirements
; This requires a matching sine lookup table to account for the unevenly
; spaced output values
dac_out_tab
.dw $7010 ; 1,00 00 0 1,31 - 0.000
.dw $5010 ; 1,25 0- 1 1,34 - 0.012
.dw $3010 ; 1,67 -0 2 1,66 - 0.136
.dw $7030 ; 2,0 01 3 1,98 - 0.261
.dw $1010 ; 2,5 -- 4 2,48 - 0.455
.dw $7050 ; 3,0 10 5 2,92 - 0.626
.dw $3030 ; 3,33 -1 6 3,26 - 0.759
.dw $5050 ; 3,75 1- 7 3,64 - 0.907
.dw $7070 ; 4,00 11 8 3,88 - 1.000
.dw $7070 ; 4,00 11 8 3,88 - 1.000 ; Saturate
.dw $7070 ; 4,00 11 8 3,88 - 1.000 ; Saturate
.dw $7070 ; 4,00 11 8 3,88 - 1.000 ; Saturate
dac_out_tab3
.dw $7000 ; 1,00 00 5 1,31
dac_out_tab2
.dw $7000 ; 1,00 00 5 1,31
.dw $5000 ; 1,00 0- 0 1,34
.dw $3000 ; 1,00 -0 0 1,66
.dw $7020 ; 3,33 01 6 1,98
.dw $1000 ; 1,00 -- 0 2,48
.dw $7040 ; 3,75 10 7 2,92
.dw $3020 ; 1,00 -1 0 3,26
.dw $5040 ; 1,00 1- 0 3,64
.dw $7060 ; 4,00 11 8 3,88
.dw $7060 ; 4,00 11 8 3,88
.dw $7060 ; 4,00 11 8 3,88
sin_256
.db 8, 8, 8, 8,10,10,10,10,10,10,10,10,10,10,10,10,
.db 10,12,12,12,12,12,12,12,12,12,12,12,12,12,14,14,
.db 14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,16,
.db 16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,
.db 16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,
.db 16,16,14,14,14,14,14,14,14,14,14,14,14,14,14,14,
.db 14,14,14,12,12,12,12,12,12,12,12,12,12,12,12,12,
.db 10,10,10,10,10,10,10,10,10,10,10,10,10, 8, 8, 8,
.db 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 6, 6, 6, 6,
.db 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 4, 4, 4, 4, 4,
.db 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2,
.db 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0,
.db 0, 0, 0, 0, 0, 0, 0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
.db 2, 2, 2, 2, 2, 2, 2, 4, 4, 4, 4, 4, 4, 4, 4, 4,
.db 4, 4, 4, 4, 4, 4, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6,
.db 6, 6, 6, 6, 6, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8,
; Single tone oscillator of EVA5 may use this table directly
; to get DAC value (Port 6 data and DDR) directly
.dw $0
dac_sin_tab
.dw $1000, $1000, $1000, $7040, $7040, $7040, $7040, $7040,
.dw $3020, $3020, $3020, $3020, $3020, $3020, $3020, $3020,
.dw $3020, $3020, $3020, $3020, $3020, $3020, $3020, $3020,
.dw $3020, $7040, $7040, $7040, $7040, $7040, $1000, $1000,
.dw $1000, $1000, $7020, $7020, $7020, $7020, $7020, $3000,
.dw $3000, $3000, $3000, $5000, $5000, $5000, $5000, $5000,
.dw $5000, $5000, $5000, $5000, $5000, $5000, $3000, $3000,
.dw $3000, $3000, $7020, $7020, $7020, $7020, $7020, $1000
.dw $1000, $1000, $1000, $7040, $7040, $7040, $7040, $7040,
.dw $3020, $3020, $3020, $3020, $3020, $3020, $3020, $3020,
.dw $3020, $3020, $3020, $3020, $3020, $3020, $3020, $3020,
.dw $3020, $7040, $7040, $7040, $7040, $7040, $1000, $1000,
.dw $1000
.dw $1010, $1010
pl_dac_sin_tab
.dw $1010, $1010, $1010, $1010, $1010, $1010, $1010, $1010,
.dw $1010, $1010, $1010, $1010, $7030, $7030, $7030, $7030,
.dw $7030, $7030, $7030, $7030, $7030, $7030, $7030, $7030,
.dw $7030, $7030, $7030, $3010, $3010, $3010, $3010, $3010,
.dw $3010, $3010, $3010, $3010, $3010, $3010, $3010, $3010,
.dw $3010, $3010, $3010, $5010, $5010, $5010, $5010, $5010,
.dw $5010, $5010, $5010, $5010, $5010, $5010, $5010, $5010,
.dw $5010, $5010, $5010, $5010, $5010, $5010, $7010, $7010,
.dw $7010, $7010, $7010, $5010, $5010, $5010, $5010, $5010,
.dw $5010, $5010, $5010, $5010, $5010, $5010, $5010, $5010,
.dw $5010, $5010, $5010, $5010, $5010, $5010, $3010, $3010,
.dw $3010, $3010, $3010, $3010, $3010, $3010, $3010, $3010,
.dw $3010, $3010, $3010, $3010, $3010, $3010, $7030, $7030,
.dw $7030, $7030, $7030, $7030, $7030, $7030, $7030, $7030,
.dw $7030, $7030, $7030, $7030, $7030, $1010, $1010, $1010,
.dw $1010, $1010, $1010, $1010, $1010, $1010, $1010, $1010,
.dw $1010, $1010, $1010, $1010, $1010, $7050, $7050, $7050,
.dw $7050, $7050, $7050, $7050, $7050, $7050, $7050, $7050,
.dw $7050, $7050, $3030, $3030, $3030, $3030, $3030, $3030,
.dw $3030, $3030, $3030, $3030, $3030, $3030, $3030, $3030,
.dw $5050, $5050, $5050, $5050, $5050, $5050, $5050, $5050,
.dw $5050, $5050, $5050, $5050, $5050, $5050, $5050, $5050,
.dw $5050, $5050, $5050, $5050, $7070, $7070, $7070, $7070,
.dw $7070, $7070, $7070, $7070, $7070, $7070, $7070, $7070,
.dw $7070, $7070, $7070, $7070, $7070, $7070, $7070, $7070,
.dw $7070, $7070, $7070, $7070, $7070, $5050, $5050, $5050,
.dw $5050, $5050, $5050, $5050, $5050, $5050, $5050, $5050,
.dw $5050, $5050, $5050, $5050, $5050, $5050, $5050, $5050,
.dw $5050, $3030, $3030, $3030, $3030, $3030, $3030, $3030,
.dw $3030, $3030, $3030, $3030, $3030, $3030, $3030, $7050,
.dw $7050, $7050, $7050, $7050, $7050, $7050, $7050, $7050,
.dw $7050, $7050, $7050, $7050, $1010, $1010, $1010, $1010
.dw $1010, $1010
.dw $7010, $7010
dac_8to3filt
.dw $7010, $7010, $5010, $5010, $5010, $5010, $5010, $5010,
.dw $5010, $5010, $5010, $5010, $5010, $5010, $5010, $5010,
.dw $5010, $5010, $5010, $3010, $3010, $3010, $3010, $3010,
.dw $3010, $3010, $3010, $3010, $3010, $3010, $3010, $3010,
.dw $3010, $3010, $3010, $3010, $3010, $3010, $3010, $3010,
.dw $3010, $3010, $3010, $3010, $3010, $3010, $3010, $3010,
.dw $3010, $3010, $3010, $7030, $7030, $7030, $7030, $7030,
.dw $7030, $7030, $7030, $7030, $7030, $7030, $7030, $7030,
.dw $7030, $7030, $7030, $7030, $7030, $7030, $7030, $7030,
.dw $7030, $7030, $7030, $7030, $7030, $7030, $7030, $7030,
.dw $7030, $7030, $7030, $7030, $7030, $7030, $7030, $7030,
.dw $7030, $7030, $7030, $7030, $1010, $1010, $1010, $1010,
.dw $1010, $1010, $1010, $1010, $1010, $1010, $1010, $1010,
.dw $1010, $1010, $1010, $1010, $1010, $1010, $1010, $1010,
.dw $1010, $1010, $1010, $1010, $1010, $1010, $1010, $1010,
.dw $1010, $1010, $1010, $1010, $1010, $1010, $1010, $1010,
.dw $1010, $1010, $1010, $1010, $1010, $1010, $1010, $1010,
.dw $1010, $1010, $1010, $7050, $7050, $7050, $7050, $7050,
.dw $7050, $7050, $7050, $7050, $7050, $7050, $7050, $7050,
.dw $7050, $7050, $7050, $7050, $7050, $7050, $7050, $7050,
.dw $7050, $7050, $7050, $7050, $7050, $7050, $7050, $7050,
.dw $7050, $7050, $7050, $7050, $7050, $7050, $7050, $7050,
.dw $7050, $7050, $3030, $3030, $3030, $3030, $3030, $3030,
.dw $3030, $3030, $3030, $3030, $3030, $3030, $3030, $3030,
.dw $3030, $3030, $3030, $3030, $3030, $3030, $3030, $3030,
.dw $3030, $3030, $3030, $3030, $3030, $3030, $3030, $3030,
.dw $3030, $3030, $3030, $3030, $3030, $3030, $5050, $5050,
.dw $5050, $5050, $5050, $5050, $5050, $5050, $5050, $5050,
.dw $5050, $5050, $5050, $5050, $5050, $5050, $5050, $5050,
.dw $5050, $5050, $5050, $5050, $5050, $5050, $5050, $5050,
.dw $5050, $5050, $5050, $5050, $5050, $7070, $7070, $7070,
.dw $7070, $7070, $7070, $7070, $7070, $7070, $7070, $7070,
.dw $7070, $7070
.dw $7000, $7000
dac_8to3
.dw $7000, $7000, $5000, $5000, $5000, $5000, $5000, $5000,
.dw $5000, $5000, $5000, $5000, $5000, $5000, $5000, $5000,
.dw $5000, $5000, $5000, $3000, $3000, $3000, $3000, $3000,
.dw $3000, $3000, $3000, $3000, $3000, $3000, $3000, $3000,
.dw $3000, $3000, $3000, $3000, $3000, $3000, $3000, $3000,
.dw $3000, $3000, $3000, $3000, $3000, $3000, $3000, $3000,
.dw $3000, $3000, $3000, $7020, $7020, $7020, $7020, $7020,
.dw $7020, $7020, $7020, $7020, $7020, $7020, $7020, $7020,
.dw $7020, $7020, $7020, $7020, $7020, $7020, $7020, $7020,
.dw $7020, $7020, $7020, $7020, $7020, $7020, $7020, $7020,
.dw $7020, $7020, $7020, $7020, $7020, $7020, $7020, $7020,
.dw $7020, $7020, $7020, $7020, $1000, $1000, $1000, $1000,
.dw $1000, $1000, $1000, $1000, $1000, $1000, $1000, $1000,
.dw $1000, $1000, $1000, $1000, $1000, $1000, $1000, $1000,
.dw $1000, $1000, $1000, $1000, $1000, $1000, $1000, $1000,
.dw $1000, $1000, $1000, $1000, $1000, $1000, $1000, $1000,
.dw $1000, $1000, $1000, $1000, $1000, $1000, $1000, $1000,
.dw $1000, $1000, $1000, $7040, $7040, $7040, $7040, $7040,
.dw $7040, $7040, $7040, $7040, $7040, $7040, $7040, $7040,
.dw $7040, $7040, $7040, $7040, $7040, $7040, $7040, $7040,
.dw $7040, $7040, $7040, $7040, $7040, $7040, $7040, $7040,
.dw $7040, $7040, $7040, $7040, $7040, $7040, $7040, $7040,
.dw $7040, $7040, $3020, $3020, $3020, $3020, $3020, $3020,
.dw $3020, $3020, $3020, $3020, $3020, $3020, $3020, $3020,
.dw $3020, $3020, $3020, $3020, $3020, $3020, $3020, $3020,
.dw $3020, $3020, $3020, $3020, $3020, $3020, $3020, $3020,
.dw $3020, $3020, $3020, $3020, $3020, $3020, $5040, $5040,
.dw $5040, $5040, $5040, $5040, $5040, $5040, $5040, $5040,
.dw $5040, $5040, $5040, $5040, $5040, $5040, $5040, $5040,
.dw $5040, $5040, $5040, $5040, $5040, $5040, $5040, $5040,
.dw $5040, $5040, $5040, $5040, $5040, $7060, $7060, $7060,
.dw $7060, $7060, $7060, $7060, $7060, $7060, $7060, $7060
.dw $7060, $7060
err_tab
dac_8to3_err
.db 32, 31, 32, 31, 30, 29, 28, 27, 26, 25, 24, 23, 22, 21, 20, 19,
.db 18, 17, 16, 47, 46, 45, 44, 43, 42, 41, 40, 39, 38, 37, 36, 35,
.db 34, 33, 32, 31, 30, 29, 28, 27, 26, 25, 24, 23, 22, 21, 20, 19,
.db 18, 17, 16, 47, 46, 45, 44, 43, 42, 41, 40, 39, 38, 37, 36, 35,
.db 34, 33, 32, 31, 30, 29, 28, 27, 26, 25, 24, 23, 22, 21, 20, 19,
.db 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 56, 55, 54, 53,
.db 52, 51, 50, 49, 48, 47, 46, 45, 44, 43, 42, 41, 40, 39, 38, 37,
.db 36, 35, 34, 33, 32, 31, 30, 29, 28, 27, 26, 25, 24, 23, 22, 21,
.db 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 53, 52, 51, 50, 49,
.db 48, 47, 46, 45, 44, 43, 42, 41, 40, 39, 38, 37, 36, 35, 34, 33,
.db 32, 31, 30, 29, 28, 27, 26, 25, 24, 23, 22, 21, 20, 19, 18, 17,
.db 16, 15, 48, 47, 46, 45, 44, 43, 42, 41, 40, 39, 38, 37, 36, 35,
.db 34, 33, 32, 31, 30, 29, 28, 27, 26, 25, 24, 23, 22, 21, 20, 19,
.db 18, 17, 16, 15, 14, 13, 50, 49, 48, 47, 46, 45, 44, 43, 42, 41,
.db 40, 39, 38, 37, 36, 35, 34, 33, 32, 31, 30, 29, 28, 27, 26, 25,
.db 24, 23, 22, 21, 20, 43, 42, 41, 40, 39, 38, 37, 36, 35, 34, 33
err_tab1
.db 32, 33, 32, 31, 30, 29, 28, 27, 26, 25, 24, 23, 22, 21, 20, 19,
.db 18, 17, 48, 47, 46, 45, 44, 43, 42, 41, 40, 39, 38, 37, 36, 35,
.db 34, 33, 32, 31, 30, 29, 28, 27, 26, 25, 24, 23, 22, 21, 20, 19,
.db 18, 17, 48, 47, 46, 45, 44, 43, 42, 41, 40, 39, 38, 37, 36, 35,
.db 34, 33, 32, 31, 30, 29, 28, 27, 26, 25, 24, 23, 22, 21, 20, 19,
.db 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 57, 56, 55, 54, 53,
.db 52, 51, 50, 49, 48, 47, 46, 45, 44, 43, 42, 41, 40, 39, 38, 37,
.db 36, 35, 34, 33, 32, 31, 30, 29, 28, 27, 26, 25, 24, 23, 22, 21,
.db 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 54, 53, 52, 51, 50, 49,
.db 48, 47, 46, 45, 44, 43, 42, 41, 40, 39, 38, 37, 36, 35, 34, 33,
.db 32, 31, 30, 29, 28, 27, 26, 25, 24, 23, 22, 21, 20, 19, 18, 17,
.db 16, 49, 48, 47, 46, 45, 44, 43, 42, 41, 40, 39, 38, 37, 36, 35,
.db 34, 33, 32, 31, 30, 29, 28, 27, 26, 25, 24, 23, 22, 21, 20, 19,
.db 18, 17, 16, 15, 14, 51, 50, 49, 48, 47, 46, 45, 44, 43, 42, 41,
.db 40, 39, 38, 37, 36, 35, 34, 33, 32, 31, 30, 29, 28, 27, 26, 25,
.db 24, 23, 22, 21, 44, 43, 42, 41, 40, 39, 38, 37, 36, 35, 34, 23
dac_sin256
.db $80, $81, $83, $84, $86, $87, $89, $8a, $8c, $8d, $8f, $90, $92, $93, $95, $96,
.db $98, $99, $9b, $9c, $9d, $9f, $a0, $a1, $a3, $a4, $a5, $a7, $a8, $a9, $aa, $ab,
.db $ac, $ad, $af, $b0, $b1, $b2, $b3, $b3, $b4, $b5, $b6, $b7, $b8, $b8, $b9, $ba,
.db $ba, $bb, $bb, $bc, $bc, $bd, $bd, $bd, $be, $be, $be, $bf, $bf, $bf, $bf, $bf,
.db $bf, $bf, $bf, $bf, $bf, $bf, $be, $be, $be, $bd, $bd, $bd, $bc, $bc, $bb, $bb,
.db $ba, $ba, $b9, $b8, $b8, $b7, $b6, $b5, $b4, $b3, $b3, $b2, $b1, $b0, $af, $ad,
.db $ac, $ab, $aa, $a9, $a8, $a7, $a5, $a4, $a3, $a1, $a0, $9f, $9d, $9c, $9b, $99,
.db $98, $96, $95, $93, $92, $90, $8f, $8d, $8c, $8a, $89, $87, $86, $84, $83, $81,
.db $80, $7e, $7c, $7b, $79, $78, $76, $75, $73, $72, $70, $6f, $6d, $6c, $6a, $69,
.db $67, $66, $64, $63, $62, $60, $5f, $5e, $5c, $5b, $5a, $58, $57, $56, $55, $54,
.db $53, $52, $50, $4f, $4e, $4d, $4c, $4c, $4b, $4a, $49, $48, $47, $47, $46, $45,
.db $45, $44, $44, $43, $43, $42, $42, $42, $41, $41, $41, $40, $40, $40, $40, $40,
.db $40, $40, $40, $40, $40, $40, $41, $41, $41, $42, $42, $42, $43, $43, $44, $44,
.db $45, $45, $46, $47, $47, $48, $49, $4a, $4b, $4c, $4c, $4d, $4e, $4f, $50, $52,
.db $53, $54, $55, $56, $57, $58, $5a, $5b, $5c, $5e, $5f, $60, $62, $63, $64, $66,
.db $67, $69, $6a, $6c, $6d, $6f, $70, $72, $73, $75, $76, $78, $79, $7b, $7c, $7e
sin_64_3_0dB ; 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
.db 4, 5, 5, 5, 5, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8,
.db 8, 8, 8, 8, 8, 7, 7, 7, 7, 6, 6, 6, 5, 5, 5, 5,
.db 4, 4, 4, 3, 3, 3, 3, 2, 2, 2, 2, 1, 1, 1, 1, 0,
.db 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4
sin_64_3_1dB
.db 4, 4, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7,
.db 7, 7, 7, 7, 7, 7, 7, 7, 6, 6, 6, 6, 5, 5, 5, 4,
.db 4, 4, 4, 4, 4, 3, 3, 3, 3, 2, 2, 2, 2, 2, 2, 2,
.db 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4
sin_64_3_0dB_ls ; 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
.db 8, 8,10,10,10,12,12,12,14,14,14,14,16,16,16,16,
.db 16,16,16,16,16,14,14,14,14,12,12,12,10,10,10, 8,
.db 8, 8, 6, 6, 6, 4, 4, 4, 2, 2, 2, 2, 0, 0, 0, 0,
.db 0, 0, 0, 0, 0, 2, 2, 2, 2, 4, 4, 4, 6, 6, 6, 8
#endif