diff options
Diffstat (limited to '')
-rw-r--r-- | c/src/lib/libbsp/arm/nds/libnds/include/nds/reload.h | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/c/src/lib/libbsp/arm/nds/libnds/include/nds/reload.h b/c/src/lib/libbsp/arm/nds/libnds/include/nds/reload.h index de19c2c08b..c95ae3aaa4 100644 --- a/c/src/lib/libbsp/arm/nds/libnds/include/nds/reload.h +++ b/c/src/lib/libbsp/arm/nds/libnds/include/nds/reload.h @@ -34,11 +34,11 @@ #ifndef _NDS_LOAD_H_ #define _NDS_LOAD_H_ - - + + typedef void __attribute__ ((long_call)) (*COPYFUNC)(const char*); typedef u32 __attribute__ ((long_call)) (*QUERYFUNC)(u32); - + typedef struct { u32 VERSION; // contains version information about loader QUERYFUNC QUERY; // used to retreive extended information from loader @@ -47,33 +47,33 @@ typedef struct { const char *PATH; // THIS VALUE IS SET FOR YOU, DONT TOUCH IT u32 RESERVED; // reserved for future expansion } LOADER_DATA; - + #define LOADNDS ((volatile LOADER_DATA*)(0x02800000-48)) #define BOOT_NDS ((const char*)-1) - - - + + + /* dump this near the begining of your ARM7's main function - + LOADNDS->PATH = 0; - - + + inside of your ARM7's main loop or VBlank IRQ or what-ever, add this code: - + if (LOADNDS->PATH != 0) { LOADNDS->ARM7FUNC(LOADNDS->PATH); } - - + + ////////////////////////////////////// - + in your ARM9 code, to return to the menu, call this function: - + WAIT_CR &= ~0x8080; LOADNDS->ARM9FUNC(BOOT_NDS); - + */ - - + + #endif //_NDS_LOAD_H_ |