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

Implement HLT/KIL Opcodes #399

Merged
merged 3 commits into from
May 11, 2024
Merged

Implement HLT/KIL Opcodes #399

merged 3 commits into from
May 11, 2024

Conversation

ChessMan14
Copy link
Contributor

There is a speedrun category in Super Mario Bros. 3 where you do a glitch involving memory corruption. This memory corruption sometimes causes illegal opcodes to be executed and HLT/KIL opcodes will crash the game on original hardware. The mods therefore decided to ban puNES and Mesen for the category. This PR implements the opcodes so that the cpu will freeze like it should if HLT/KIL opcodes are encountered.

@punesemu
Copy link
Owner

Thanks for your support, when I get home (I'm away from home these days for personal reasons) I'll take a better look at your patch,

I prefer to leave the warning message.
@punesemu
Copy link
Owner

punesemu commented May 6, 2024

I think we should add the nes[nidx].c.cpu.jammed in the savestate.

@punesemu punesemu merged commit eab01be into punesemu:master May 11, 2024
8 checks passed
@punesemu
Copy link
Owner

@ChessMan14 Thank you for your contribution.

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

Successfully merging this pull request may close these issues.

2 participants