Finally getting some work done on SpiceC and have run into an issue. Storing graphic data in the C code like this:
Lets you create a list of images like this:
const unsigned char* Images[] ={ Timmy, RedBox};
However, each entry in that list takes up 4 bytes (size of a pointer) which is twice as much space as needed as when I set up the graphic data via dasm files.
Since the data ends up in the first 32K of the addressing space, I should be able to do something like this:
const unsigned short int Images[] ={ Timmy, RedBox};
or this:
const unsigned short int Images[] ={ (unsigned short int)Timmy, (unsigned short int)RedBox};
However, I get compile time errors:
game.c:41:3: error: initializer element is not constantgame.c:42:3: error: initializer element is not constant
Anybody have any ideas? Thanks!
10 Comments
Recommended Comments