fix: only push raw instruction once

This commit is contained in:
2025-05-27 09:37:57 +09:00
parent 3463b5b4ae
commit 5c8702fb95
3 changed files with 16 additions and 11 deletions

View File

@@ -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"),
}