| 248 |
Kevin |
1 |
/* User application code loading tables for VS10xx */
|
|
|
2 |
|
|
|
3 |
#if 0
|
|
|
4 |
void LoadUserCode(void) {
|
|
|
5 |
int i = 0;
|
|
|
6 |
|
|
|
7 |
while (i<sizeof(plugin)/sizeof(plugin[0])) {
|
|
|
8 |
unsigned short addr, n, val;
|
|
|
9 |
addr = plugin[i++];
|
|
|
10 |
n = plugin[i++];
|
|
|
11 |
if (n & 0x8000U) { /* RLE run, replicate n samples */
|
|
|
12 |
n &= 0x7FFF;
|
|
|
13 |
val = plugin[i++];
|
|
|
14 |
while (n--) {
|
|
|
15 |
WriteVS10xxRegister(addr, val);
|
|
|
16 |
}
|
|
|
17 |
} else { /* Copy run, copy n samples */
|
|
|
18 |
while (n--) {
|
|
|
19 |
val = plugin[i++];
|
|
|
20 |
WriteVS10xxRegister(addr, val);
|
|
|
21 |
}
|
|
|
22 |
}
|
|
|
23 |
}
|
|
|
24 |
}
|
|
|
25 |
#endif
|
|
|
26 |
|
|
|
27 |
#ifndef SKIP_PLUGIN_VARNAME
|
|
|
28 |
#define PLUGIN_SIZE 40
|
|
|
29 |
const unsigned short plugin[40] = { /* Compressed plugin */
|
|
|
30 |
#endif
|
|
|
31 |
0x0007, 0x0001, 0x8010, 0x0006, 0x001c, 0x3e12, 0xb817, 0x3e14, /* 0 */
|
|
|
32 |
0xf812, 0x3e01, 0xb811, 0x0007, 0x9717, 0x0020, 0xffd2, 0x0030, /* 8 */
|
|
|
33 |
0x11d1, 0x3111, 0x8024, 0x3704, 0xc024, 0x3b81, 0x8024, 0x3101, /* 10 */
|
|
|
34 |
0x8024, 0x3b81, 0x8024, 0x3f04, 0xc024, 0x2808, 0x4800, 0x36f1, /* 18 */
|
|
|
35 |
0x9811, 0x0007, 0x0001, 0x8028, 0x0006, 0x0002, 0x2a00, 0x040e,
|
|
|
36 |
#ifndef SKIP_PLUGIN_VARNAME
|
|
|
37 |
};
|
|
|
38 |
#endif
|