import Instruction and use print in main
This commit is contained in:
parent
f67bd4a5a8
commit
7f9fb76513
@ -1,6 +1,7 @@
|
||||
mod decode;
|
||||
mod print;
|
||||
|
||||
fn main() {
|
||||
let instr = decode::decode(98);
|
||||
println!("Hello, world! opcode : {}", instr.opcode);
|
||||
println!("{}", print::print(instr, 0));
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
mod decode.rs
|
||||
use crate::decode::Instruction;
|
||||
|
||||
const RISCV_LUI: u8 = 0x37;
|
||||
const RISCV_AUIPC: u8 = 0x17;
|
||||
|
Loading…
Reference in New Issue
Block a user