From 857d055ffc5f10001d2f88721febb20c1fa42cf8 Mon Sep 17 00:00:00 2001 From: Michael Zapf Date: Sun, 23 Aug 2015 17:16:37 +0200 Subject: [PATCH] Just some logging improvement --- src/emu/cpu/tms9900/tms9995.c | 2 +- src/emu/machine/at29x.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/emu/cpu/tms9900/tms9995.c b/src/emu/cpu/tms9900/tms9995.c index d561a0550c9..ae9248fd82d 100644 --- a/src/emu/cpu/tms9900/tms9995.c +++ b/src/emu/cpu/tms9900/tms9995.c @@ -1412,7 +1412,7 @@ void tms9995_device::decode(UINT16 inst) if (decoded == NULL) { // not found - logerror("tms9995: Unknown opcode %04x, will trigger MID\n", inst); + logerror("tms9995: Undefined opcode %04x at logical address %04x, will trigger MID\n", inst, PC); m_decoded[dindex].IR = 0; m_decoded[dindex].command = MID; } diff --git a/src/emu/machine/at29x.c b/src/emu/machine/at29x.c index 0174c355409..440645b4c00 100644 --- a/src/emu/machine/at29x.c +++ b/src/emu/machine/at29x.c @@ -251,6 +251,7 @@ READ8_MEMBER( at29x_device::read ) m_programming_timer->adjust(attotime::from_msec(m_cycle_time*7/10)); } + if (TRACE_READ) logerror("%s: DATA poll; toggle bit 1\n", tag()); reply = m_toggle_bit? 0x02 : 0x00; m_toggle_bit = !m_toggle_bit; @@ -264,7 +265,7 @@ READ8_MEMBER( at29x_device::read ) // Simple case: just read the memory contents reply = m_eememory[offset+2]; - if (TRACE_READ) logerror("%s: %05x -> %02x\n", tag(), offset, reply); + if (TRACE_READ) logerror("%s: %05x -> %02x (PGM=%d)\n", tag(), offset, reply, m_pgm); return reply; }