Commodore 128 Tips & Tricks


Go to content

SID

SID chip type detection:

(BASIC V7 program combined with ML code)
It recognized between 6581 and 8580


490 print"sid chip type: ";:gosub3800
500 ifa<128thenprint"old 6581 sid":goto530
510 ifa>128thenprint"new 8580 sid":goto530
520 print"unknown"
530 end
3800 fori=0to69
3850 reada
3900 poke4864+i,a
3950 next
4000 data 162,29,169,0,157,255,211,202,208,250
4050 data 120,173,17,208,41,239,141,17,208,169,32,141
4100 data 14,212,141,15,212,169,49,141,18,212,162,0
4150 data 134,250,160,0,173,27,212,197,250,144,2,133
4200 data 250,232,208,244,136,208,241,169,48,141,18,212
4250 data 173,17,208,9,16,141,17,208,165,250,88,96
4300 sys4864
4350 rrega
4400 do
4450 b=a
4500 sys4864
4550 rrega
4600 loop until a=b
4610 return



SID memory map


Back to content | Back to main menu