Implement SRLI
This commit is contained in:
@@ -25,6 +25,11 @@ pub(crate) fn find_and_exec(instr: Instruction, core: &mut Core) -> Option<Instr
|
||||
// OP_IMM
|
||||
0b000 => Some(rvi::addi(core, instr)),
|
||||
0b001 => (instr.funct6() == 0).then(|| rvi::slli(core, instr)),
|
||||
0b101 => match instr.funct6() {
|
||||
// immediate right-shift
|
||||
0b000000 => Some(rvi::srli(core, instr)),
|
||||
_ => None,
|
||||
},
|
||||
0b111 => Some(rvi::andi(core, instr)),
|
||||
_ => None,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user