From 9ce48953c19d0be36baa3492ef510dbd03a576d8 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Fri, 12 Apr 2019 13:45:03 -0400 Subject: [PATCH] Improves debugging printout. --- Processors/68000/Implementation/68000Implementation.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Processors/68000/Implementation/68000Implementation.hpp b/Processors/68000/Implementation/68000Implementation.hpp index 00c3a78f0..7e829c923 100644 --- a/Processors/68000/Implementation/68000Implementation.hpp +++ b/Processors/68000/Implementation/68000Implementation.hpp @@ -59,10 +59,12 @@ template void Processor: std::cerr << "68000 Abilities exhausted; can't manage instruction " << std::hex << decoded_instruction_ << " from " << (program_counter_.full - 4) << std::endl; return; } else { - std::cout << "Performing " << std::hex << decoded_instruction_ << " from " << (program_counter_.full - 4) << '\t'; for(int c = 0; c < 8; ++ c) std::cout << "d" << c << ":" << data_[c].full << " "; for(int c = 0; c < 8; ++ c) std::cout << "a" << c << ":" << address_[c].full << " "; std::cout << std::endl; + std::cout << std::hex << (program_counter_.full - 4) << ": " << decoded_instruction_ << '\t'; + std::cout << (extend_flag_ ? 'x' : '-') << (negative_flag_ ? 'n' : '-') << (zero_result_ ? '-' : 'z'); + std::cout << (overflow_flag_ ? 'v' : '-') << (carry_flag_ ? 'c' : '-') << '\t'; } active_program_ = &instructions[decoded_instruction_];