From 7ce15ee606446d3e686b1a75a3e05608733f5b18 Mon Sep 17 00:00:00 2001 From: velllu <91963404+velllu@users.noreply.github.com> Date: Tue, 5 Sep 2023 17:44:03 +0200 Subject: [PATCH] Improved output readability on the example --- examples/terminal.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/terminal.rs b/examples/terminal.rs index 1549d50..6cac25a 100644 --- a/examples/terminal.rs +++ b/examples/terminal.rs @@ -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!(""); } }