See GitHub Code: https://github.com/8bit-Dude/8bit-Hub/tree/master/CC65
See Emulation of 8bit-Hub (Firmware 0.6) in Oricutron: http://8bit-slicks.com/?wpdmpro=oricutron
For more info on the 8bit-Hub: http://8bit-unity.com/?page_id=551
Note: This code can be easily ported to OSDK. You would simply need to copy the files hub.s (generated by CC65) and VIA.s. Then use the same API calls as shown in main.c.
