Quazar SID Interface
SID Programming
Using with RC2014 Mini II Picasso
Basic
Set ROM address to 0 100 (just Bank 2 set) to boot into Microsoft BASIC (Phil Green).
Insert SID interface card: marked A15 pin is pin 1.
Use the following test BASIC program (as provided in the instructions):
10 DATA 205,7,10,123,66,14,84,237,121
20 DATA 0,0,0,203,248,237,121,195,125,17
30 FOR A=-1024 TO -1006
40 READ D
50 POKE A,D
60 NEXT A
70 POKE -32695,0
80 POKE -32694,252
90 LET A=USR(1024)
100 LET A=USR(6159)
101 LET A=USR(1280)
102 LET A=USR(1776)
103 LET A=USR(1041)
110 FOR D=256 TO 511
120 LET A=USR(D)
130 NEXT D
140 GOTO 110
Type RUN to start it. You should hear "siren" audio effect.
CamelForth
Set ROM address to 0 001 (just Bank 8 set) to boot into CamelForth (Justin Skists).
Paste following Forth program.
: PC2! SWAP 2* 2* 2* 2* 2* 2* 2* 2* OR PC! ;
: SIDSEND 2DUP 128 OR 84 PC2! 2DUP 127 AND 84 PC2! 128 OR 84 PC2! ;
: SIDRST 0 24 SIDSEND 0 4 SIDSEND ;
SIDRST
15 24 SIDSEND
0 5 SIDSEND
240 6 SIDSEND
17 4 SIDSEND
128 1 SIDSEND
PS2! c c p-addr -- Data byte, high address byte, port address; OUT to port with A and B register set
SIDSEND c c -- Value, register (0-31); bit 5,6 are for interrupt settings; bit 7 (/CS) is handled
SIDRST -- Reset SID chip
Decimals used:
- 84 = 0x52 - I/O port number
- 24 = 0x18 register 0x18 (24), no interrupt
- 128 - high bit set
- 127 - all but high bit set

