Implement ANDI and BEQ

This commit is contained in:
2025-12-21 16:29:28 +01:00
parent acc267a460
commit c05ba60c3c
2 changed files with 24 additions and 0 deletions

View File

@@ -21,6 +21,7 @@ pub(crate) fn find_and_exec(instr: Instruction, core: &mut Core) -> Option<Instr
0b000000 => Some(rvi::slli(core, instr)),
_ => None,
},
0b111 => Some(rvi::andi(core, instr)),
_ => None,
},
0b00110 => match instr.funct3() {
@@ -40,6 +41,11 @@ pub(crate) fn find_and_exec(instr: Instruction, core: &mut Core) -> Option<Instr
0b100 => Some(rvi::lbu(core, instr)),
_ => None,
},
0b11000 => match instr.funct3() {
// BRANCH
0b000 => Some(rvi::beq(core, instr)),
_ => None,
},
0b01101 => Some(rvi::lui(core, instr)),
0b11011 => Some(rvi::jal(core, instr)),
_ => None,