Implement LD and BNE

This commit is contained in:
2025-12-21 21:00:25 +01:00
parent 5b2d6a1af0
commit 209e44ae64
2 changed files with 32 additions and 0 deletions

View File

@@ -35,11 +35,13 @@ pub(crate) fn find_and_exec(instr: Instruction, core: &mut Core) -> Option<Instr
// LOAD
0b000 => Some(rvi::lb(core, instr)),
0b100 => Some(rvi::lbu(core, instr)),
0b011 => Some(rvi::ld(core, instr)),
_ => None,
},
0b11000 => match instr.funct3() {
// BRANCH
0b000 => Some(rvi::beq(core, instr)),
0b001 => Some(rvi::bne(core, instr)),
_ => None,
},
0b01101 => Some(rvi::lui(core, instr)),