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.

Hardware > Access GBA Sleep/low power mode via hardware?

#4235 - hobartrus - Mon Mar 24, 2003 11:35 pm

Does anyone know if it's possible to access the GBA sleep/low power mode via hardware?

I want to mod my GBASP so that it goes to sleep when I close the lid... but I really don't want to have go through the trouble of getting an eprom burner and programming a chip just to use the BIOS Stop function.

thanks.

#4236 - ampz - Tue Mar 25, 2003 2:25 am

It is of course possible to do it for custom software...

It might be possible to stop the clock in hardware?

#4267 - ronin64 - Wed Mar 26, 2003 9:31 am

It would be a hassle to recompile the demos and homebrew games that you'd want to apply the functionality to, but I think the only solution would be to modify each program you run on your gba to support the sleep mode you are suggesting.

The questions are:
1) Can a binary patch be generic for adding this functionality or would it need to be tailored for each rom?
2) Can the gba software detect the closing of the cover or would a button combination be used to indicate sleep.

#4276 - ampz - Wed Mar 26, 2003 12:28 pm

It can probably be made as a binary patch if the cart IRQ line is used....
Just make it a interrupt routine.