Code implementing the MOS6581 library for Arduino.