Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save deleted when reset core and CPU turbo are enabled together. #56

Closed
multi-vitamin opened this issue Nov 17, 2022 · 4 comments
Closed

Comments

@multi-vitamin
Copy link

If you use cpu turbo and choose reset core instead of load cartridge,
The save will be deleted.

i checked this happen with Ys3, Final Fantasy 6.

However, Ys4 was not deleted.

Perhaps if the glitch is severe, it will be deleted.

@multi-vitamin multi-vitamin changed the title Delete save when reset core and CPU turbo are enabled together. Save deleted when reset core and CPU turbo are enabled together. Nov 17, 2022
@agg23
Copy link
Owner

agg23 commented Nov 17, 2022

Do either of those titles actually experience slowdown?

From the MiSTer turbo docs:

Use of the CPU Turbo function is outside the normal operation of SNES hardware. Undesirable issues will occur if you use this feature in many games.

The save was not deleted, it was corrupted. Did the game actually function besides the save corruption?

@multi-vitamin
Copy link
Author

Game didn't slow down, it was just a test.
It doesn't support it, so only a glitched screen comes out.

Any ideas why save file gets corrupted when I select core reset option?

@agg23
Copy link
Owner

agg23 commented Nov 17, 2022

If you enabled the turbo option after the game started the first time, then resetting the core would be the first time the game started from its initial state with the turbo enabled. If that's not the case, it's possible that whatever corruption occurs to the game executing state clobbers the reset vector, so specifically using the reset option causes the CPU to jump to that vector, which is where things get messed up in the save.

Since turbo messes with the timing of the CPU, anything could be happening, so somehow the save RAM is getting clobbered.

In any case, there's nothing I (or anyone really) can do here. When you mess with CPU timing, anything can happen.

@multi-vitamin
Copy link
Author

Thank you for reply.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants