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 > Any way to read data from the slot-1?

#113036 - Noda - Fri Dec 22, 2006 1:55 pm

Is the fat library the only way to read data from the slot-1?

For example, if my homebrew is 2Mb big(Arm9+7 binaries), but with 8Mb of various data attached in, is there a way to access theses 8Mb with a bios command or something like that to read the slot-1 rom?

Commerial games must use a system like that, using bios calls I think, but I wonder if there's a way to do the same thing with homebrews?

If it can be done, it could be used to implement an embedded filesystem (like GBFS) which could work either on slot-1 or slot-2 devices.

Thanks for the replies.

#113046 - tepples - Fri Dec 22, 2006 3:01 pm

Noda wrote:
Is the fat library the only way to read data from the slot-1?

For example, if my homebrew is 2Mb big(Arm9+7 binaries), but with 8Mb of various data attached in, is there a way to access theses 8Mb with a bios command or something like that to read the slot-1 rom?

Commerial games must use a system like that, using bios calls I think

Commercial games have a Nitro file system driver in (the executable part of) the .nds file, just as homebrew games have an MS-FAT compatible system driver in (the executable part of) the .nds file
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#113047 - Mighty Max - Fri Dec 22, 2006 3:01 pm

There is no bios function.

However here is everything you need to create your own read routines.
_________________
GBAMP Multiboot

#113254 - Noda - Mon Dec 25, 2006 11:26 am

Thanks, I'll dig that ;)