Skip to content

Fix xori instruction #27

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

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

Conversation

Sama3mad
Copy link

@Sama3mad Sama3mad commented Apr 6, 2025

Fixes Issue: 1
Bug: xori instruction was missing from the assembler, causing an "unknown mnemonic" error.

Fix:
Added xori to the instructionSet[] array as an I-type instruction.
Set opcode and funct3 (XOR immediate).

Test Case:
.text
.globl _start

_start:
li x5, 4
xori x5,1

li a0, 10

    ecall 3

✅ Assembles correctly now, with xori recognized and properly encoded.

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.

1 participant