Skip to content

Fix IndexError raised for single operand IMUL instruction#321

Merged
disinvite merged 1 commit intoisledecomp:masterfrom
disinvite:fix-single-operand-imul
Feb 14, 2026
Merged

Fix IndexError raised for single operand IMUL instruction#321
disinvite merged 1 commit intoisledecomp:masterfrom
disinvite:fix-single-operand-imul

Conversation

@disinvite
Copy link
Collaborator

A group of instructions like this breaks the recent mov/imul swap correction in #314:

mov ax, word ptr [bp + 0x38]
imul word ptr [bp + 0x3a]

This fix aborts the attempted fix if we get a single-operand imul.

@disinvite disinvite force-pushed the fix-single-operand-imul branch from fb08443 to acf8986 Compare February 14, 2026 00:47
Copy link
Collaborator

@jonschz jonschz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good to merge, assuming you have checked that the test fails on the old code.

@disinvite disinvite merged commit 5a84ec2 into isledecomp:master Feb 14, 2026
15 checks passed
@disinvite disinvite deleted the fix-single-operand-imul branch February 14, 2026 15:43
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