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.

Beginners > ROM data?

#23606 - rusty - Fri Jul 16, 2004 3:12 am

I'm wondering exactly how do I specify that data is held in ROM as opposed to RAM??

Do I just make it const?

Sorry if this sounds like a stupid question, and I'm betting it's been asked before...

#23608 - sajiimori - Fri Jul 16, 2004 3:57 am

If you're using something like HAM or DevKitAdvance, const data will be put in ROM, non-const data will be put in IWRAM, and malloc allocates from EWRAM. This can all be changed, but it takes some doing.

#23610 - rusty - Fri Jul 16, 2004 4:11 am

groovy. thanks :)