Implement LB and LBU
This commit is contained in:
@@ -34,6 +34,12 @@ pub(crate) fn find_and_exec(instr: Instruction, core: &mut Core) -> Option<Instr
|
||||
0b011 => Some(rvi::sd(core, instr)),
|
||||
_ => None,
|
||||
},
|
||||
0b00000 => match instr.funct3() {
|
||||
// LOAD
|
||||
0b000 => Some(rvi::lb(core, instr)),
|
||||
0b100 => Some(rvi::lbu(core, instr)),
|
||||
_ => None,
|
||||
},
|
||||
0b01101 => Some(rvi::lui(core, instr)),
|
||||
0b11011 => Some(rvi::jal(core, instr)),
|
||||
_ => None,
|
||||
|
||||
Reference in New Issue
Block a user