fix: only push raw instruction once
This commit is contained in:
10
src/main.rs
10
src/main.rs
@@ -37,8 +37,14 @@ fn main() {
|
||||
|
||||
match args.command {
|
||||
Command::Disasm => {
|
||||
let instructions = disasm::disasm(&args).unwrap();
|
||||
log::debug!("{:?}", &instructions);
|
||||
let instructions = disasm::disasm(&args);
|
||||
match instructions {
|
||||
Err(e) => {
|
||||
println!("(undefined)");
|
||||
println!("Encountered error during parsing: {e}")
|
||||
}
|
||||
_ => {}
|
||||
};
|
||||
}
|
||||
_ => panic!("Command not yet implemented"),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user