summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/machine/ncr5390.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mess/machine/ncr5390.c')
-rw-r--r--src/mess/machine/ncr5390.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/mess/machine/ncr5390.c b/src/mess/machine/ncr5390.c
index 0e7dd38c267..880bcf6ae1d 100644
--- a/src/mess/machine/ncr5390.c
+++ b/src/mess/machine/ncr5390.c
@@ -550,7 +550,7 @@ void ncr5390_device::delay_cycles(int cycles)
READ8_MEMBER(ncr5390_device::tcount_lo_r)
{
- logerror("%s: tcount_lo_r %02x (%08x)\n", tag(), tcount & 0xff, cpu_get_pc(&space.device()));
+ logerror("%s: tcount_lo_r %02x (%08x)\n", tag(), tcount & 0xff, space.device().safe_pc());
return tcount;
}
@@ -558,12 +558,12 @@ WRITE8_MEMBER(ncr5390_device::tcount_lo_w)
{
tcount = (tcount & 0xff00) | data;
status &= ~S_TC0;
- logerror("%s: tcount_lo_w %02x (%08x)\n", tag(), data, cpu_get_pc(&space.device()));
+ logerror("%s: tcount_lo_w %02x (%08x)\n", tag(), data, space.device().safe_pc());
}
READ8_MEMBER(ncr5390_device::tcount_hi_r)
{
- logerror("%s: tcount_hi_r %02x (%08x)\n", tag(), tcount >> 8, cpu_get_pc(&space.device()));
+ logerror("%s: tcount_hi_r %02x (%08x)\n", tag(), tcount >> 8, space.device().safe_pc());
return tcount >> 8;
}
@@ -571,7 +571,7 @@ WRITE8_MEMBER(ncr5390_device::tcount_hi_w)
{
tcount = (tcount & 0x00ff) | (data << 8);
status &= ~S_TC0;
- logerror("%s: tcount_hi_w %02x (%08x)\n", tag(), data, cpu_get_pc(&space.device()));
+ logerror("%s: tcount_hi_w %02x (%08x)\n", tag(), data, space.device().safe_pc());
}
UINT8 ncr5390_device::fifo_pop()
@@ -611,13 +611,13 @@ WRITE8_MEMBER(ncr5390_device::fifo_w)
READ8_MEMBER(ncr5390_device::command_r)
{
- logerror("%s: command_r (%08x)\n", tag(), cpu_get_pc(&space.device()));
+ logerror("%s: command_r (%08x)\n", tag(), space.device().safe_pc());
return command[0];
}
WRITE8_MEMBER(ncr5390_device::command_w)
{
- // logerror("%s: command_w %02x (%08x)\n", tag(), data, cpu_get_pc(&space.device()));
+ // logerror("%s: command_w %02x (%08x)\n", tag(), data, space.device().safe_pc());
if(command_pos == 2) {
status |= S_GROSS_ERROR;
check_irq();
@@ -756,7 +756,7 @@ READ8_MEMBER(ncr5390_device::status_r)
{
UINT32 ctrl = scsi_bus->ctrl_r();
UINT8 res = status | (ctrl & S_MSG ? 4 : 0) | (ctrl & S_CTL ? 2 : 0) | (ctrl & S_INP ? 1 : 0);
- logerror("%s: status_r %02x (%08x)\n", tag(), res, cpu_get_pc(&space.device()));
+ logerror("%s: status_r %02x (%08x)\n", tag(), res, space.device().safe_pc());
if(irq)
status &= ~(S_GROSS_ERROR|S_PARITY|S_TCC);
return res;
@@ -777,7 +777,7 @@ READ8_MEMBER(ncr5390_device::istatus_r)
if(res)
command_pop_and_chain();
- logerror("%s: istatus_r %02x (%08x)\n", tag(), res, cpu_get_pc(&space.device()));
+ logerror("%s: istatus_r %02x (%08x)\n", tag(), res, space.device().safe_pc());
return res;
}
@@ -788,7 +788,7 @@ WRITE8_MEMBER(ncr5390_device::timeout_w)
READ8_MEMBER(ncr5390_device::seq_step_r)
{
- logerror("%s: seq_step_r %d (%08x)\n", tag(), seq, cpu_get_pc(&space.device()));
+ logerror("%s: seq_step_r %d (%08x)\n", tag(), seq, space.device().safe_pc());
return seq;
}