Recently I built some nano SwinSID following these instructions.After testing one of these little buggers in my Franken-C64 I decided I want to try to connect it to an Arduino.
Some wire placing and code writing later I was able to access the SIDs registers and now I wanted to make some music…
The idea was: use a PC based C64 emulator and replace the SID emulation with the SwinSID connected via USB. First I tried jsidplay2, but I had no luck understanding the timing for the emulated 6510. Luckily I found kernal64, a C64 emulator implemented in Scala.
I had never before used Scala, but as it is Java based I was shortly after able to do this:
Please find my patched kernal64, the Arduino-sketch, schematics and some instructions here.
Because Debian comes with a quite old version of VICE I compiled the current V2.4 myself.
Installing the depencies (note: I know that not everything in the list is necessary, but this worked for me):
sudo apt-get install xaw3dg-dev libxaw7-dev libreadline-dev
sudo apt-get install libmp3lame-dev libpng12-dev libjpeg62-dev
sudo apt-get install libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-image1.2-dev
sudo apt-get install libusb-dev libgtk2.0-dev libvte-dev
Now download VICE and install it:
tar xvzf ../vice-2.4.tar.gz
sudo make install
My RasPI runs stable at 800Mhz with these little heat sinks. This is fast enough to run VICE at 100% emulation speed (if you don’t do other stuff in the background). If switched to ‘warp mode’ VICE will run at ~170%.