use riscu::Instruction;
pub enum SyscallId {
Exit = 93,
Read = 63,
Write = 64,
Openat = 56,
Brk = 214,
}
pub const fn instruction_to_str(i: Instruction) -> &'static str {
match i {
Instruction::Lui(_) => "lui",
Instruction::Jal(_) => "jal",
Instruction::Jalr(_) => "jalr",
Instruction::Beq(_) => "beq",
Instruction::Ld(_) => "ld",
Instruction::Sd(_) => "sd",
Instruction::Addi(_) => "addi",
Instruction::Add(_) => "add",
Instruction::Sub(_) => "sub",
Instruction::Sltu(_) => "sltu",
Instruction::Mul(_) => "mul",
Instruction::Divu(_) => "divu",
Instruction::Remu(_) => "remu",
Instruction::Ecall(_) => "ecall",
}
}