Shop OBEX P1 Docs P2 Docs Learn Events
Propeller SID emulator in C — Parallax Forums

Propeller SID emulator in C

threadzthreadz Posts: 56
edited 2014-08-14 06:52 in Propeller 1
I have been trying to convert the Commodore 64 SID emulator object (http://obex.parallax.com/object/532) to from SPIN and PASM to C, but I can't wrap my head around the complexities of it.
spin2cpp hasn't worked for me either.
Has anyone already converted the object or possibly know of another sound generator object for the propeller?
EDIT:
...that is either currently in C/C++ or will be correctly converted by spin2cpp to C/C++.

Comments

  • ersmithersmith Posts: 6,053
    edited 2014-08-14 06:52
    What went wrong with spin2cpp? Looking at the object it seems the work is all done in PASM, so the C code just needs to start the PASM COG and then set variables to tell the PASM COG what to do.

    Have you tried compliing the spin2cpp output with just -O (or without any optimization at all)? It could be that some variables need to be volatile that aren't.
Sign In or Register to comment.