Skip to content

Allow rA=0 for 601 integer store-update instructions - #236

Merged
dingusdev merged 2 commits into
dingusdev:masterfrom
mihaip:upstream-store-update-601
Oct 10, 2026
Merged

dingusdev merged 2 commits into
dingusdev:masterfrom
mihaip:upstream-store-update-601

Conversation

@mihaip

@mihaip mihaip commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

Normally rA (where the effective address is stored) cannot be 0, but the MPC601 user manual explicitly says that it's allowed for POWER compatibility (the update is skipped in that case).

Fixes mouse movement in Barrack under on the 6100, which would previously stop executing because of an illegal opcode exeception being raised (and unhandled).

To make this sort of thing easier to debug, log a warning whenever an illegal opcode exception is being raised,
since it's usually a clue that we have a correctness bug.

Just a warning (as opposed to an error) because the guest OS may handle the exception and continue execution. Also don't log zero opcodes, since the TNT ROM uses them frequently as sentinels.

mihaip added 2 commits October 9, 2026 16:33
Normally rA (where the effective address is stored) cannot be 0, but the
MPC601 user manual explicitly says that it's allowed for POWER
compatibility (the update is skipped in that case).

Fixes mouse movement in Barrack under on the 6100, which would previously
stop executing because of an illegal opcode exeception being raised
(and unhandled).
Log a warning whenever an illegal opcode exception is being raised,
since it's usually a clue that we have a correctness bug.

Just a warning (as opposed to an error) because the guest OS may handle
the exception and continue execution.
@dingusdev
dingusdev merged commit 62793bb into dingusdev:master Oct 10, 2026
7 checks passed
mihaip added a commit to mihaip/infinite-mac that referenced this pull request Oct 10, 2026
Picks up dingusdev/dingusppc#236 which fixes Barrack on the 6100.

For #219
@mihaip
mihaip deleted the upstream-store-update-601 branch October 11, 2026 02:07
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