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.

Coding > Reseting the GBA via software

#38873 - fiffi - Fri Apr 01, 2005 4:31 pm

Hello,

I try to reset the GBA via software while developing a game using n multiboot cable.

I used this code:

asm volatile("swi 0x00000"); // 0x00 Soft Reset

When I execute the code, a white screen appears, but not the Gameboy logo. (Which appears, when I switch them off and on)

How can I reset the GBA via software to get the Gameboy logo, and that the GBA is ready to receive a new multiboot image ?


Thank you very much for your help !


Best regards

Fiffi

#38875 - tepples - Fri Apr 01, 2005 4:34 pm

There's a FAQ for that.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#38881 - FluBBa - Fri Apr 01, 2005 4:48 pm

Check this.
Make sure the reset jumps to 0x08000000.
_________________
I probably suck, my not is a programmer.

#38914 - fiffi - Sat Apr 02, 2005 12:02 am

Hello tepples and FluBBa,

Thank you very much for the fast help !

The following code jumps back to the Game Boy logo:

Code:

void SoftReset()
{
  asm volatile("mov r0,#0x8c");
  asm volatile("bx r0");
}


Best regards

Fiffi