Skip to content

Commit

Permalink
fix(repl): change hlt address message to decimal;
Browse files Browse the repository at this point in the history
  • Loading branch information
5-pebbles committed Sep 13, 2024
1 parent dc3bab1 commit 99d7f13
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,10 @@ pub fn emulation_repl() -> Result<(), Error> {
state.consume_instruction();
}

let (p0, p1) = state.program_counter.as_tuple();
println!("Reached Halt {:0>6b}-{:0>6b}", p0, p1);
println!(
"Reached Halt {}",
tuple_as_usize(state.program_counter.as_tuple())
);
}
"step" | "s" => {
state.consume_instruction();
Expand Down

0 comments on commit 99d7f13

Please sign in to comment.