Skip to content

[BOX32] Fix ARPL (0x63) semantics and add regression test#3513

Merged
ptitSeb merged 2 commits intoptitSeb:mainfrom
FrontMage:arpl-0x63-pr-clean
Feb 14, 2026
Merged

[BOX32] Fix ARPL (0x63) semantics and add regression test#3513
ptitSeb merged 2 commits intoptitSeb:mainfrom
FrontMage:arpl-0x63-pr-clean

Conversation

@FrontMage
Copy link
Contributor

This PR fixes incorrect handling of opcode 0x63 in 32-bit mode (BOX32): it is ARPL Ew, Gw (not MOVSXD).

Changes:

  • Implement correct ARPL semantics (conditional RPL update, ZF-only flag update) in interpreter and ARM64 dynarec.
  • Fix opcode memory access decode for 0x63 in 32-bit mode.
  • Add a tests32/extensions/arpl regression test.

This addresses: #2739

Fixes #2739.

In 32-bit mode, opcode 0x63 is ARPL Ew, Gw, not MOVSXD.\n\nImplement correct ARPL behavior (conditional update of RPL + ZF only) in the interpreter and ARM64 dynarec, and update opcode memory access decode for 32-bit mode.
Add an ARPL 0x63 regression test for BOX32 builds.\n\nThe test validates conditional RPL update and ZF-only flag behavior (other status flags preserved).
@ptitSeb
Copy link
Owner

ptitSeb commented Feb 14, 2026

Oh, nice! Thanks for the analysis and fix!

@ptitSeb ptitSeb merged commit 521b378 into ptitSeb:main Feb 14, 2026
27 checks passed
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.

Turtle wow keeps disconnected after login

2 participants