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

Implement MULHU and NE instructions #13

Closed
thealmarty opened this issue Dec 15, 2023 · 1 comment · Fixed by #23
Closed

Implement MULHU and NE instructions #13

thealmarty opened this issue Dec 15, 2023 · 1 comment · Fixed by #23
Labels

Comments

@thealmarty
Copy link

These instructions are needed for the MVP. We need MULHU for immediate division and NE for the logical operators (and, or, not). Following the format of our ISA, the spec for these instructions are:

NE:
Operands: a, b(fp), c(fp)
Description: If [b] != [c] then set a to 1. Otherwise, set a to 0.

MULHU:
Operands: a, b(fp), c(fp)
Description: Multiply [b] by [c] then set a to the top part of the result.

@thealmarty
Copy link
Author

Also MULHS and SRA for SDIV.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants