Skip to content

Commit

Permalink
Fix *disasm build
Browse files Browse the repository at this point in the history
  • Loading branch information
twvd committed Jun 8, 2024
1 parent 8d1164a commit 1f25496
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/bin/disasm/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ fn main() -> Result<()> {
let f = fs::read(&args[1])?;
let mut fiter = f.into_iter();
let mut pos = 0;
while let Ok(ins) = Instruction::decode(&mut fiter, false, false) {
while let Some(ins) = Instruction::decode(&mut fiter, false, false) {
println!("{:06X} {}", pos, ins);
pos += ins.def.len;
}
Expand Down
2 changes: 1 addition & 1 deletion src/bin/spcdisasm/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ fn main() -> Result<()> {
let f = fs::read(&args[1])?;
let mut fiter = f.into_iter();
let mut pos = 0;
while let Ok(ins) = Instruction::decode(&mut fiter) {
while let Some(ins) = Instruction::decode(&mut fiter) {
println!("{:04X} {}", pos, ins);
pos += ins.def.len;
}
Expand Down

0 comments on commit 1f25496

Please sign in to comment.