gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Coding > multiple screen images

#911 - wtuck - Sun Jan 12, 2003 2:55 am

Hi All,

I'm writting a GBA Application that contains over 15 graphic screens.

My problem lies in that when I get MORE then 5 xx.c graphic data files linked in the Emulator works fine but when I port it over to the real hardware I get a blank screen.

Please take note that around less then 5 stored screens workes on the emulator and on a cart.

The following are my make file settings:

CFLAGS = -O1 -Wall -save-temps -fverbose-asm -mthumb-interwork -mlong-calls
LDFLAGS = -lm -w -mthumb-interwork -mlong-calls

Any help I would appreciate.

#913 - subbie - Sun Jan 12, 2003 3:11 am

how big are your images & how big is your rom?

Also when you get over 5, is it only images past 5 will give a black screen or do all the images in your rom give a black screen?

#917 - jaymzjulian - Sun Jan 12, 2003 5:50 am

wtuck wrote:
Hi All,
My problem lies in that when I get MORE then 5 xx.c graphic data files linked in the Emulator works fine but when I port it over to the real hardware I get a blank screen.


are you putting the files in ram or rom? some emulators will create more ram where none exists ;)

- jj

#924 - Splam - Sun Jan 12, 2003 1:32 pm

If you've converted your graphics to a .c file make sure the arrays are static eg static u16 picture1[]= if the static isn't there the compiler presumes you want to alter the contents of the array and will compile it to ram instead of rom.

#926 - TeaBoy - Sun Jan 12, 2003 1:36 pm

Don't you mean "const"?

#927 - Touchstone - Sun Jan 12, 2003 2:37 pm

He probably do. 'const' mean that the content of the symbol cannot be changed and 'static', in this case, means that the symbol won't be exported out of the filescope, i.e. it will only be known in the C file it was declared in.
_________________
You can't beat our meat

#931 - Splam - Sun Jan 12, 2003 3:10 pm

Damn, of course I do.. I'd only just woken up when I typed that hehe Sorry for missleading anyone.

#954 - wtuck - Sun Jan 12, 2003 7:24 pm

Hi All,


Thanks to all of you. Your suggestions solved my problem.