Do you have an example of the .C format? Just to be sure I do the correct thing. Basically a piece of C code with an byte array of the data?
I use just a simple C Array , like that for instance :
const byte fonts[] = {
60,102,110,110,103,98,60,0,
24,60,102,126,102,102,102,0,
124,102,102,124,102,102,124,0,
60,102,96,96,96,102,60,0,
120,108,102,102,102,108,120,0,
126,96,96,120,96,96,126,0,
126,96,96,120,96,96,96,0,
60,102,96,110,102,102,60,0,
.....
};
Basically it is just more or less your BASIC DATA without the line number and DATA statement.
If you want let the possibility to put all in hexadecimal , just prefix the hexa number by 0x like :
const byte charset[] = {
0x60,0xFF,0x45,0xF2,0xEA,0xB0,0x11,0xAA,0x0,
0x60,0xFF,0x45,0xF2,0xEA,0xB0,0x11,0xAA,0x0,
...
};
I’ve added the “to C array” option to all editors export tab. Probably not perfect, but should work good enough.
Currently only in the WIP version, which is always at https://www.georg-rottensteiner.de/webmisc/C64StudioRelease.zip