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 > How is the nds game memory organized?

#64818 - swzte - Tue Dec 27, 2005 1:55 am

As we all know,the DS game size becomes bigger and bigger.However,when analyzing the header of the game,we can get ARM9 code size and ARM7 code size. Of course, these sizes are much smaller and the DS game file also contains many icons and so on.The VRAM of NDS is only 4MByte(or 8Mbyte),the game size is much bigger and the GBA slot has only 24 address signals(Addr[23..0]) and 16 data signals[15..0].My problem is that ,when loader loads a game into VRAM, how does the game load other resources of the game,such as icons,wavs and so on.

#64820 - tepples - Tue Dec 27, 2005 1:59 am

The DS Game Card is a block device containing a file system, as are CompactFlash and Secure Digital memory cards in your typical SuperCard adapter. Nintendo DS programs load other assets from storage into RAM using the equivalent of fopen() and friends.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.