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 > Booting back to EZFA menu

#18027 - FireOut - Fri Mar 19, 2004 12:39 am

Hi,
I was wondering if there is anyway I could use a "A+B+SELECT+START" kind of booting on my programs so I could boot back into EZFA menu? EZFA now has an IGF option in its writer program but it doesn't work on any of the .gba's generated with HAM.

Thanks in advance for any help ;)

#18028 - dagamer34 - Fri Mar 19, 2004 1:49 am

Set up an ISR to generate an interrupt on pressing keys A, B, Start, and Select and then use th bios to do a soft reset.

Or you could check to see if all those keys are pressed every frame and use the bios call then.

HAM doesn't have any bios functions, but I know there is a library somewhere around here on the site that does what you want.
_________________
Little kids and Playstation 2's don't mix. :(

#18029 - FireOut - Fri Mar 19, 2004 3:35 am

Thank you dagamer, I found the library you mentioned (or I think I did), it is called SWI Libraries by Andrew P. Bilyk.
http://www.gbadev.org/download.php?section=demos&filename=swi_libraries.zip

I tried calling SWI_SoftReset() , but the function seems to only freeze the GBA/game.

1. I added the libraries to ADD_LIBS section of the HAM makefile (had to change the .lib names with "(" and ")" because HAM doesn't like those in its makefile)

2. Added the include to swi.h in main.c

I do think now that I've compiled it incorrectly, tough I tried different approaches, because I removed the libraries from the ADD_LIBS section and I observed the same effect. Perhaps it has something to do with the renaming? Is there anything I am doing wrong?