1
0
forked from Rativel/BurritOS

Add a bin loader

This commit is contained in:
Quentin Legot
2023-03-27 18:10:11 +02:00
parent a223c14f36
commit 08ba0154f7
5 changed files with 69 additions and 20 deletions

View File

@@ -216,7 +216,7 @@ pub fn print(ins: Instruction, pc: i32) -> String { //TODO pc should be u64
RISCV_SYSTEM => {
"ecall".to_string()
},
_ => todo!("{:x} opcode non géré pc : {:x}, value : {:x}", ins.opcode, pc, ins.value) // Change todo! to panic! in the future, I put todo! because there's a lot of opcode currently not implemented
_ => unreachable!("{:x} opcode non géré pc : {:x}, value : {:x}", ins.opcode, pc, ins.value)
}
}