From ac14e7be714326be0eaf40ed95a7c493edbc95ce Mon Sep 17 00:00:00 2001 From: folkert van heusden Date: Sun, 19 Mar 2023 09:04:48 +0100 Subject: [PATCH] logging --- bus.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bus.cpp b/bus.cpp index cf37972..bdecdb0 100644 --- a/bus.cpp +++ b/bus.cpp @@ -287,7 +287,7 @@ uint16_t bus::read(const uint16_t a, const bool word_mode, const bool use_prev, else temp = m -> readWord(m_offset); - DOLOG(debug, !peek_only, "READ from %06o/%07o: %o", a, m_offset, temp); + DOLOG(debug, !peek_only, "READ from %06o/%07o %c %c: %o", a, m_offset, space == d_space ? 'D' : 'I', word_mode ? 'B' : 'W', temp); return temp; } @@ -869,7 +869,7 @@ void bus::write(const uint16_t a, const bool word_mode, uint16_t value, const bo uint32_t m_offset = calculate_physical_address(run_mode, a, true, true, false, space == d_space); - DOLOG(debug, true, "WRITE to %06o/%07o: %o", a, m_offset, value); + DOLOG(debug, true, "WRITE to %06o/%07o %c %c: %o", a, m_offset, space == d_space ? 'D' : 'I', word_mode ? 'B' : 'W', value); if (word_mode) m->writeByte(m_offset, value);