Make branches macros and implement all of them

This commit is contained in:
2025-12-26 16:06:30 +01:00
parent 528b519ce9
commit 75e843f5f9
2 changed files with 25 additions and 47 deletions

View File

@@ -69,6 +69,7 @@ pub(crate) fn find_and_exec(instr: Instruction, core: &mut Core) -> Result<(), E
0b000 => rvi::beq(core, instr),
0b001 => rvi::bne(core, instr),
0b100 => rvi::blt(core, instr),
0b101 => rvi::bge(core, instr),
0b110 => rvi::bltu(core, instr),
0b111 => rvi::bgeu(core, instr),
_ => Err(IllegalInstruction),