Skip to content

Fix MUL/IMUL instructions#24

Open
KiN4Tec wants to merge 2 commits intoYJDoc2:masterfrom
KiN4Tec:master
Open

Fix MUL/IMUL instructions#24
KiN4Tec wants to merge 2 commits intoYJDoc2:masterfrom
KiN4Tec:master

Conversation

@KiN4Tec
Copy link
Copy Markdown

@KiN4Tec KiN4Tec commented Dec 6, 2023

This PR fixes #16 by retrieving the result from res instead of the previous value of AL
and fixes #22 by using proper integer casting

This fixes the carry and overflow flags not being set when MUL and IMUL
overflow on byte multiplication
@YJDoc2
Copy link
Copy Markdown
Owner

YJDoc2 commented Dec 21, 2023

Hey, Thanks for the PR!
Apologies as I have been busy with other stuff, so couldn't take a look, but will try to get to this soon.

Thanks a lot!

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.

IMUL does not sign extend correctly MUL/IMUL flag setting is incorrect

2 participants