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

Fix MUL/IMUL instructions #24

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Fix MUL/IMUL instructions #24

wants to merge 2 commits into from

Conversation

KiN4Tec
Copy link

@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
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