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.

OffTopic > Patching waitstates of a GBA ROM

#145006 - Chano Marrano - Sat Nov 10, 2007 11:11 am

Is there any application to patch the ROM waitstates of a gba program?
Thanks.

#145012 - tepples - Sat Nov 10, 2007 1:44 pm

Do you want to make them faster? Or do you want to make them slower? I think a patcher to make wait states slower comes with the SuperCard software. Is there a specific program that you want to patch?
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#145022 - Chano Marrano - Sat Nov 10, 2007 4:26 pm

I wanted to make them slower. I have patched a Shitfaced Clowns demo with the Supercard software and at least it starts correctly on my six years old F2A. It's a same that the software patches the rom to a 4/2 wait state (I think), 3/1 would be better for my flashcard.

Anyways, thanks for the info.

#145037 - tepples - Sat Nov 10, 2007 8:33 pm

The SFC demos typically come in an ordinary version for cards that can be clocked at 2/1 (called "overclock" in memtestARM for DS) and a "lamer" version for cards that can only be clocked at 3/1.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#145039 - Chano Marrano - Sat Nov 10, 2007 9:25 pm

Yes, I knew that, but the only demo of the demogroup that I've been able to get in "lamer" version is Five Finger Discount.

#145042 - kusma - Sat Nov 10, 2007 10:40 pm

What demo are you looking to run? We did do a "lamer-version" for "Newton never did this, bitch", but this isn't online anymore. I could put it online again if needed. Theoretically, I could make a "lamer-version" of "Who's your favorite clown", but I'm a bit afraid that the code is out of sync with the tool-chain.

The reason we never did a "lamer-version" of "Matt Current" is that one of the effects breaks horribly without 2/1 wait-states. That is mostly due to some sketchy code on my part, but I never got the time to fix it and now I kinda feel finished with that demo. There's so many things I'd like to fix, beginning to fix them will just lead down a very long road ;)

#145045 - Chano Marrano - Sun Nov 11, 2007 12:14 am

You could reupload Newton's lamer version if there's no problem. I was searching for a rom waitstate patch for a quick-fix for the four demos of SFC, even if the results weren't good enough. At least Newton's demo runs ok on a 4/2 waitsate environment, despite a few graphic errors in the bloom effect showed.

#145079 - Dwedit - Sun Nov 11, 2007 7:22 am

You could always run it through a debugger and break at the instruction that sets waitstates, then change it by hand.
_________________
"We are merely sprites that dance at the beck and call of our button pressing overlord."

#145089 - kusma - Sun Nov 11, 2007 1:30 pm

Chano Marrano: here you go: http://pimpmobile.kjip.no/kusma/dump/newton_f2a-fix.zip

#145093 - Chano Marrano - Sun Nov 11, 2007 2:39 pm

Thanks, Kusma.