I'm working on a picture2rom program, which will work for multiple
systems (gba,ds,etc). Everything is working right now, but I'm annoyed
by the big roms devkitARM outputs.
for my program I need to store compiled rom data (as hex)
for example, my GBA program looks like this :
Code: Select all
unsigned short RawBitmap[] = {0xC0,0xDE,0xC0,0xDE};
int main(void)
{
int x, y;
DISP_CNT = 0x400 | 0x3;
for(i = 0; i < 160*240) (unsigned short*)0x06000000[i] = RawBitmap[i];
}
Is there an easy way to not use any libs and produce a small DS rom like this ?