PitfallJones wrote:Code: Select all
static void *itab[256] = {
&&_00, &&_01, &&_02, &&_03, &&_04, &&_05, &&_06, &&_07, &&_08, &&_09, &&_0a, &&_0b, &&_0c, &&_0d, &&_0e, &&_0f,
&&_00 etc., are all defined elsewhere. IIRC, they're macros, but it's been a little while since I looked at the code.
PitfallJones wrote:Could somebody translate it into normal 'c' ?
It doesn't have to be fast - just compile....
It is 'normal c', some of the cleanest I've seen for a while.
Unfortunately, Visual C has somewhat of a reputation for not speaking normal C (For that matter, Visual C++ has a simiiar reputation for C++). The reputation isn't helped by their refusal to support C99; which is quite possibly at the base of your issue. Perhaps using a GCC port or the Intel compiler would give you more success?
PitfallJones wrote:But then the problem arises of data that contains code addresses - to do that it's easiest to simulate the code - I use a modified version of Sidplayer to do that.
Pretty much what sidreloc automates. My patched version (to also relocate the SID address) certainly seems to have a decent success rate converting tunes to play under a patched sidplay2, however, I'm fairly obviously missing something important about getting a SID to play on BeebSID. For that reason, I'd be very interested in someone taking a look at the SID conversion attempts I posted earlier.
PitfallJones wrote:So his quoted 'success' rate is very generous I think.
It's based on relocating the code to another location, and then it doing the same thing to the SID at the same times under emulation. As written, the output's intended for a C64. You lose a few more when you also relocate the SID to BeebSID addresses, of course.
PitfallJones wrote:If someone can post me the win32 exe for sidreloc I can probably add 'Can't get no Satisfaction'
I don't have any of the stuff to build it on Windows, but I could throw it through sidreloc here, if you let me know where to relocate it to.
PitfallJones wrote:I have worked out how to convert the notes in a MIDI file over to a SID but the result is rather bland - what we need is someone to give us a tutorial on making good SID envelopes and instrument timbre - maybe Tom? his ST conversions sound pretty good. If anyone wants to step-up it would be much appreciated!
Perhaps the C64 community have something else we can pillage and/or loot in that respect.
Hmm, there's some references to mid2mod and mid2sng, but people don't seem to think they do a decent job. (Of course, for MIDI, we could just hang a box containing a Yamaha XG synth off the 1MHz bus...)