Users browsing this thread: 1 Guest(s)
Patch: Soft Reset

#6
Posts: 175
Threads: 23
Thanks Received: 22
Thanks Given: 7
Joined: Feb 2016
Reputation: 8
Status
Enlight
The bulk of the patch code is reproducing the entry point of the program in the C0 bank (see C0/0020), but it skips over the call that initializes the sound chip.

The skip prevents the sound from getting messed up in some emulators. (The echo effect would stop working. Same thing would happen if you got a game over on a new game before saving)

I remember FF2us having a different memory layout than FF3us, so there are probably several differences. But the same general idea should work.
  • Code injection in the controller input loop/check
  • Check for exempt condition(s), i.e. are we in the field menu -- this check will definitely look different in FF2us
  • Check for the button combo (I doubt there's any custom button mapping in FF2us)
  • SPC command to stop sounds
  • Reproduce game initialization code up to, but excluding, the sound chip initialization
  • Jump to the actual game initialization code just after sound chip initialization
Quote  



Messages In This Thread
Patch: Soft Reset - by SilentEnigma - 05-16-2020, 09:09 PM
RE: Patch: Soft Reset - by Lightning - 05-23-2020, 04:42 AM
RE: Patch: Soft Reset - by Warrax - 05-24-2020, 03:41 PM
RE: Patch: Soft Reset - by SilentEnigma - 10-24-2021, 08:13 PM
RE: Patch: Soft Reset - by kamesennin - 08-01-2022, 01:29 AM
RE: Patch: Soft Reset - by SilentEnigma - 08-01-2022, 09:22 PM
RE: Patch: Soft Reset - by kamesennin - 08-03-2022, 01:20 AM

Forum Jump:

Users browsing this thread: 1 Guest(s)


Theme by Madsiur2017Custom Graphics by JamesWhite