Skip to content

Commit

Permalink
Improved output readability on the example
Browse files Browse the repository at this point in the history
  • Loading branch information
velllu committed Sep 5, 2023
1 parent 79de351 commit 7ce15ee
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions examples/terminal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,15 @@ fn main() {
let mut gameboy = GameBoy::new(&rom_path).unwrap();

loop {
print!("{:?}", gameboy.registers);

gameboy.step();

if gameboy.is_cb {
println!("CB opcode:")
}

print!("{:?}", gameboy.registers);

println!("OPCODE: {:x}", gameboy.current_opcode.unwrap());
println!("");
}
}

0 comments on commit 7ce15ee

Please sign in to comment.