Soft reboot possible ?


Xiano

Still Fresh
Joined
Aug 24, 2003
Messages
37
Hi,

I'm wondering wether it is possible to soft reboot your gp32 with a button combination. I'm turning the thing too much on and off. It makes me worry about that poor switch :)
 
Some games/appz have an exit function that will reboot it, but if it dosen't you will have to use the switch.
 
Would it be possible to add a soft reboot function to the bios ?
 
GpAppexit(); // from the SDK

or

asm volatile("swi #4"); // gcc inlne asm syntax
 
The BIOS is mearly what you see when you turn on your GP32 (relatively speaking). It doesn't have control once the program is loaded, unless the program somehow gives back control. When a program crashes, this sends an interrupt to the CPU which causes a power reset (soft reset), I think. It isn't like the BIOS was waiting for the program to end, like DOS remains invisably in memory.

I haven't done any GB/GBA coding, but it could be that the soft reset is an interrupt in the CPU. However, it is more likely something standard added to all GB/GBA games.
 
Back
Top