Dwedit's Board

Enjoy the board

You are not logged in.

Announcement

User passwords may have been corrupted, if you can't log in, use the "Forgot Password" feature. If you still can't log in, contact me and I can try to manually reset your password.

#1 2007-06-30 10:02:30 pm

Dwedit
Administrator
From: Chicago
Registered: 2004-12-12
Posts: 1,022
Website

New tool: Add SLEEP MODE to any GBA game!

I've just finished making a tool which adds Sleep Mode to any gba game!

After using the patch tool, Press L+R+Start to sleep, and Select+Start to wake up.

First file is buggy release #1, second file is release #2


Attachments:
Attachment Icon sleephack.zip, Size: 11,010 bytes, Downloads: 625
Attachment Icon sleephack.zip, Size: 11,165 bytes, Downloads: 1,179

"We are merely sprites that dance at the beck and call of our button pressing overlord."

Offline

#2 2007-07-07 9:39:14 pm

r0ni
Member
Registered: 2007-01-15
Posts: 5

Re: New tool: Add SLEEP MODE to any GBA game!

umm.. THANK YOU!!

I come from PH in peace! ;)

ok, I downloaded it a few days ago, but still!

Last edited by r0ni (2007-07-07 9:39:35 pm)

Offline

#3 2007-10-11 1:43:23 am

HackNeyed
Guest

Re: New tool: Add SLEEP MODE to any GBA game!

I came form PH as well, thank you very much!

it just needs a nice batch option heh :)

#4 2008-05-24 7:09:31 pm

Kuwanger
Guest

Re: New tool: Add SLEEP MODE to any GBA game!

I have a question about building the patch.bin file.  Every attempt I've made has produced branch instructions with a bad relative address.  I'd assume this is because I'm compiling it wrong.  This is what I'm doing.

I have devkitarm, with gcc 4.0.1.  I run:

arm-elf-gcc -c -o patch.o patch.s
arm-elf-objcopy -O binary patch.o patch.bin

The result is that branch instructions will jump 84 instructions past where they're supposed to jump to (compared against the inlcuded patch.bin).  Any ideas on what stupid mistake I'm making?

#5 2008-05-24 11:33:51 pm

Dwedit
Administrator
From: Chicago
Registered: 2004-12-12
Posts: 1,022
Website

Re: New tool: Add SLEEP MODE to any GBA game!

I used this:

arm-eabi-as patch.s -o patch.o
arm-eabi-objcopy -O binary patch.o patch.bin

and got an identical file to what I distributed.

Maybe you need a new devkitpro, or to use "as" instead of "gcc".


"We are merely sprites that dance at the beck and call of our button pressing overlord."

Offline

#6 2008-05-25 3:34:35 am

Kuwanger
Guest

Re: New tool: Add SLEEP MODE to any GBA game!

Yep, all it took was downloading a newer version of devkitarm (r23b to be exact).  Thanks for the information.

#7 2017-05-10 8:39:21 pm

hooddy
Member
Registered: 2016-11-22
Posts: 7

Re: New tool: Add SLEEP MODE to any GBA game!

Trying to patch some PD roms with no luck. Not all the games can be patched?

Offline

#8 2017-05-11 8:41:44 am

Dwedit
Administrator
From: Chicago
Registered: 2004-12-12
Posts: 1,022
Website

Re: New tool: Add SLEEP MODE to any GBA game!

Which game?


"We are merely sprites that dance at the beck and call of our button pressing overlord."

Offline

#9 2017-05-12 12:47:11 am

hooddy
Member
Registered: 2016-11-22
Posts: 7

Re: New tool: Add SLEEP MODE to any GBA game!

Herg's Solitaire. Im trying to catch Herold with no luck. It's good to have savestates to shuffle the cards in subway. I'm just though to ask him to renew it. But sleep mode will be ok.

Offline

#10 2017-05-12 8:55:40 am

Dwedit
Administrator
From: Chicago
Registered: 2004-12-12
Posts: 1,022
Website

Re: New tool: Add SLEEP MODE to any GBA game!

It's just a very unexpected way to install an IRQ handler:

ldr r1,=handler
mov r0, 0x7000
add r0,r0,0x03000000
str r1,[r0,0xFFC]

Normally people do something like this:

ldr r1,=handler
ldr r0,=0x03007FFC
str r1,[r0]

Just a misguided compiler optimization.  If this code was running from IWRAM, it would be 1 cycle faster than the usual code.  But since it's not (runs from EWRAM), it ends up being slower anyway.


"We are merely sprites that dance at the beck and call of our button pressing overlord."

Offline

#11 2017-05-13 8:46:25 pm

hooddy
Member
Registered: 2016-11-22
Posts: 7

Re: New tool: Add SLEEP MODE to any GBA game!

Well... Thanks.

Offline

Registered users online in this topic: 0, guests: 3
[Bot] ClaudeBot (3)

Board footer

Powered by FluxBB
Modified by Visman