Dwedit's Board

Enjoy the board

You are not logged in.

Announcement

Welcome, fellow visitors from other websites!
Whenever you download a file, I'd appreciate it if you posted a nice "Thank You" message, then tell me which site you came from. Thanks.
- Dwedit

#1 2005-11-09 3:38:42 pm

Dwedit
Princess Lapis of Sorcerland (Administrator)
From: Chicago
Registered: 2004-12-12
Posts: 902
Website

Fun with SMS speedhacking

For no real reason at all, I've been working on a program that attempts to locate the idle loops in Sega Master System/Gamegear games, and can apply a speedhack to idle loops, which would speed up the game a lot in certain emulators.  It would work by adding a HALT to the idle loop if the branch is taken.
Right now, it has no user interface, or anything like that at all.

But I'll still show you a screenshot anyway:
attachment.php?item=13&download=1
For anyone out there who understands Z80, it's a dump of all the small backwards loops in Sonic 1, after filtering a few cases that obviously aren't idle loops.  The top one is the real idle loop, it polls iy+0 until the value changes.


Attachments:
png sms_sonic1.png, Size: 4.24 KiB, Downloads: 42,770

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

Offline

#2 2005-11-09 11:38:51 pm

mudi
Menchi
Menchi
Registered: 2005-06-12
Posts: 48
Website

Re: Fun with SMS speedhacking

That looks sweet... it annoys me that on my computer GENS takes up so much CPU time, this kind of thing would really reduce required CPU time a lot.

Offline

#3 2005-11-10 7:08:05 am

Dwedit
Princess Lapis of Sorcerland (Administrator)
From: Chicago
Registered: 2004-12-12
Posts: 902
Website

Re: Fun with SMS speedhacking

um... Gens is a Genesis emulator, this program concers the Sega Master System and Game Gear.
And PC emulators generally emulate the CPU far faster than they can redraw the screen.  This was made for use with GBA based emulators, where video emulation is free, but CPU emulation is expensive.  And framerates more than double after speedhacking games, as long as there isn't much action on the screen.


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

Offline

#4 2005-11-10 11:49:25 am

mudi
Menchi
Menchi
Registered: 2005-06-12
Posts: 48
Website

Re: Fun with SMS speedhacking

oops, sorry, I guess I misread that as "Master System/Genesis", I've been slightly less than sane this whole week anyway. :P  Gens goes really slow on my computer for some reason.  I use Freeze or something like that for MS/Gamegear, and it seems to run really nicely...

Last edited by mudi (2005-11-10 7:40:31 pm)

Offline

Quick reply

Write your message and submit

Board footer

Powered by FluxBB