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 > Defining the Standard: Exit to Loader

#57428 - Patater - Sat Oct 15, 2005 8:21 pm

I have a request for the community. MightyMax, Infantile Paralyzer, DarkainMX, listen up. We need a standard way to exit from NDS programs and go back to the loader. DarkainMX developed a way to do this already with his loader (with a custom ARM7 and some easy to use ARM9 code). I suggest that all loaders should devise a standard way to "exit to loader".

#57430 - Mighty Max - Sat Oct 15, 2005 8:33 pm

Hey Patater,

the code posted by chsihm at http://forum.gbadev.org/viewtopic.php?t=6636&start=180

should work with all loaders as it completely returns to bootup code and restarts the loader.
_________________
GBAMP Multiboot

#57431 - Patater - Sat Oct 15, 2005 8:42 pm

Mighty Max wrote:
Hey Patater,

the code posted by chsihm at http://forum.gbadev.org/viewtopic.php?t=6636&start=180

should work with all loaders as it completely returns to bootup code and restarts the loader.


Would this be only for gbamp based loaders? Would there be a way to exit to loader in a non-gbamp based loader that could also be done with a gbamp based loader?

#57432 - Mighty Max - Sat Oct 15, 2005 8:46 pm

This should work for flash cards too.

It's basically setting the arm9 back to the passme loop and arm7 at the beginning of the GBA-card.

I can't verify that it's working for flash cards cuz' i don't own a flashcard *g*
_________________
GBAMP Multiboot

#57440 - Patater - Sat Oct 15, 2005 9:32 pm

Alright, I'll test it when I have the time and equipment. I'm in the middle of a move to Japan right now, so probably in a few weeks I can test. If anybody else can test before me, I'd be interested in knowing if it works.