diff options
Diffstat (limited to 'src/mame/machine/mcr68.c')
-rw-r--r-- | src/mame/machine/mcr68.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mame/machine/mcr68.c b/src/mame/machine/mcr68.c index c5d75f9baae..9f62f0ff813 100644 --- a/src/mame/machine/mcr68.c +++ b/src/mame/machine/mcr68.c @@ -539,13 +539,13 @@ WRITE8_MEMBER(mcr68_state::mcr68_6840_w_common) if (diffs & 0x02) reload_count(counter); - LOG(("%06X:Counter %d control = %02X\n", cpu_get_previouspc(&space.device()), counter, data)); + LOG(("%06X:Counter %d control = %02X\n", space.device().safe_pcbase(), counter, data)); } /* offsets 2, 4, and 6 are MSB buffer registers */ else if ((offset & 1) == 0) { - LOG(("%06X:MSB = %02X\n", cpu_get_previouspc(&space.device()), data)); + LOG(("%06X:MSB = %02X\n", space.device().safe_pcbase(), data)); m_m6840_msb_buffer = data; } @@ -564,7 +564,7 @@ WRITE8_MEMBER(mcr68_state::mcr68_6840_w_common) if (!(m6840->control & 0x10)) reload_count(counter); - LOG(("%06X:Counter %d latch = %04X\n", cpu_get_previouspc(&space.device()), counter, m6840->latch)); + LOG(("%06X:Counter %d latch = %04X\n", space.device().safe_pcbase(), counter, m6840->latch)); } } @@ -578,7 +578,7 @@ READ16_MEMBER(mcr68_state::mcr68_6840_r_common) /* offset 1 is the status register */ else if (offset == 1) { - LOG(("%06X:Status read = %04X\n", cpu_get_previouspc(&space.device()), m_m6840_status)); + LOG(("%06X:Status read = %04X\n", space.device().safe_pcbase(), m_m6840_status)); m_m6840_status_read_since_int |= m_m6840_status & 0x07; return m_m6840_status; } @@ -596,7 +596,7 @@ READ16_MEMBER(mcr68_state::mcr68_6840_r_common) m_m6840_lsb_buffer = result & 0xff; - LOG(("%06X:Counter %d read = %04X\n", cpu_get_previouspc(&space.device()), counter, result)); + LOG(("%06X:Counter %d read = %04X\n", space.device().safe_pcbase(), counter, result)); return result >> 8; } |