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 > NDS passme boot process questions, loader questions

#48613 - Dwedit - Thu Jul 21, 2005 4:58 am

What is the boot process for the 512 byte stub used by passme binaries? What fields does it look at to decide where to copy the binary to and from, then which fields to set the ARM7 and ARM9 PC? Is the complete binary stored in RAM, or does it execute from cartridge space?
What methods does darkain's loader use?
Why do the E3 demos refuse to boot?
What is the boot process for wireless multiboot, once all data has been recieved?

One more question regarding appended data...
Do .nds.gba programs that read appended data from the cartridge slot care where they are executed from, or do they automatically search the entire cartridge for the first record?
_________________
"We are merely sprites that dance at the beck and call of our button pressing overlord."

#48615 - chishm - Thu Jul 21, 2005 5:26 am

The source for the boot stub is here if you are interested.

#48662 - tepples - Thu Jul 21, 2005 3:47 pm

Dwedit wrote:
One more question regarding appended data...
Do .nds.gba programs that read appended data from the cartridge slot care where they are executed from, or do they automatically search the entire cartridge for the first record?

By default, find_first_gbfs_file() of GBFS starts from the beginning of ROM (0x08000000) and will find the first instance of "PinEightGBFS\r\n\032\n". If you have the address of the .nds binary in ROM, you can use that for the search. This isn't so much of a problem for GBA programs because the GBA loaders tend to set the bankswitching such that the program always starts at 0x08000000.

EDIT: I thought of another way to prevent your .nds.gba program from finding someone else's file system. If you get 'file not found' (gbfs_get_obj() returning NULL), use find_first_gbfs_file() to skip to the next file system.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.


Last edited by tepples on Fri Jul 22, 2005 12:20 am; edited 1 time in total

#48695 - The 9th Sage - Thu Jul 21, 2005 8:25 pm

Dwedit wrote:

Why do the E3 demos refuse to boot?


I've booted 'official' demos before using a GBA cart and PassMe...strangely it seems to be affected by what cart is in the PassMe. I think I remember reading something Darkain said about the timing of the ARM processors (like some games causing them to get a bit out of sync)...maybe that has to do with it.
_________________
Now with 20% More Old Man from Zelda 1 than ever before!