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.

DS development > Put data in ROM

#62132 - ProblemBaby - Sun Nov 27, 2005 6:47 pm

Ive tried the whole weekend to put some data in ROM, without success! how is it done?

Please help!

#62136 - tepples - Sun Nov 27, 2005 7:02 pm

Do you mean CF card, DS card, or GBA ROM?

To put data in GBA ROM, use GBFS.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#62167 - ProblemBaby - Mon Nov 28, 2005 12:56 am

what's the difference?
is it something special with gbfs file or is it just like any data with some info about offsets to data and filenames?

#62181 - tepples - Mon Nov 28, 2005 3:00 am

A GBFS file consists of a header (so that the code can locate the file inside GBA ROM space) and a directory (to associate file names with offsets and data sizes) followed by the data (always aligned on 16-byte boundaries for fast copying to VRAM or use of direct mapped structs)
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.