summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/hng64.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/hng64.c')
-rw-r--r--src/mame/drivers/hng64.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/mame/drivers/hng64.c b/src/mame/drivers/hng64.c
index 518b9836ecf..9e6656274d3 100644
--- a/src/mame/drivers/hng64.c
+++ b/src/mame/drivers/hng64.c
@@ -476,21 +476,21 @@ READ32_MEMBER(hng64_state::hng64_random_read)
READ32_MEMBER(hng64_state::hng64_com_r)
{
- logerror("com read (PC=%08x): %08x %08x = %08x\n", cpu_get_pc(&space.device()), (offset*4)+0xc0000000, mem_mask, m_com_ram[offset]);
+ logerror("com read (PC=%08x): %08x %08x = %08x\n", space.device().safe_pc(), (offset*4)+0xc0000000, mem_mask, m_com_ram[offset]);
return m_com_ram[offset];
}
WRITE32_MEMBER(hng64_state::hng64_com_w)
{
- logerror("com write (PC=%08x): %08x %08x = %08x\n", cpu_get_pc(&space.device()), (offset*4)+0xc0000000, mem_mask, data);
+ logerror("com write (PC=%08x): %08x %08x = %08x\n", space.device().safe_pc(), (offset*4)+0xc0000000, mem_mask, data);
COMBINE_DATA(&m_com_ram[offset]);
}
WRITE32_MEMBER(hng64_state::hng64_com_share_w)
{
- logerror("commw (PC=%08x): %08x %08x %08x\n", cpu_get_pc(&space.device()), data, (offset*4)+0xc0001000, mem_mask);
+ logerror("commw (PC=%08x): %08x %08x %08x\n", space.device().safe_pc(), data, (offset*4)+0xc0001000, mem_mask);
if (offset == 0x0) COMBINE_DATA(&m_com_shared_a);
if (offset == 0x1) COMBINE_DATA(&m_com_shared_b);
@@ -498,7 +498,7 @@ WRITE32_MEMBER(hng64_state::hng64_com_share_w)
READ32_MEMBER(hng64_state::hng64_com_share_r)
{
- logerror("commr (PC=%08x): %08x %08x\n", cpu_get_pc(&space.device()), (offset*4)+0xc0001000, mem_mask);
+ logerror("commr (PC=%08x): %08x %08x\n", space.device().safe_pc(), (offset*4)+0xc0001000, mem_mask);
//if(offset == 0x0) return m_com_shared_a;
//if(offset == 0x1) return m_com_shared_b;
@@ -529,7 +529,7 @@ READ32_MEMBER(hng64_state::hng64_sysregs_r)
#if 0
if((offset*4) != 0x1084)
- printf("HNG64 port read (PC=%08x) 0x%08x\n", cpu_get_pc(&space.device()), offset*4);
+ printf("HNG64 port read (PC=%08x) 0x%08x\n", space.device().safe_pc(), offset*4);
#endif
rtc_addr = offset >> 1;
@@ -605,14 +605,14 @@ WRITE32_MEMBER(hng64_state::hng64_sysregs_w)
#if 0
if(((offset*4) & 0xff00) == 0x1100)
- printf("HNG64 writing to SYSTEM Registers 0x%08x == 0x%08x. (PC=%08x)\n", offset*4, m_sysregs[offset], cpu_get_pc(&space.device()));
+ printf("HNG64 writing to SYSTEM Registers 0x%08x == 0x%08x. (PC=%08x)\n", offset*4, m_sysregs[offset], space.device().safe_pc());
#endif
switch(offset*4)
{
case 0x1084: //MIPS->MCU latch port
m_mcu_en = (data & 0xff); //command-based, i.e. doesn't control halt line and such?
- //printf("HNG64 writing to SYSTEM Registers 0x%08x == 0x%08x. (PC=%08x)\n", offset*4, m_sysregs[offset], cpu_get_pc(&space.device()));
+ //printf("HNG64 writing to SYSTEM Registers 0x%08x == 0x%08x. (PC=%08x)\n", offset*4, m_sysregs[offset], space.device().safe_pc());
break;
//0x110c global irq mask?
/* irq ack */
@@ -624,7 +624,7 @@ WRITE32_MEMBER(hng64_state::hng64_sysregs_w)
hng64_do_dma(&space);
break;
//default:
- // printf("HNG64 writing to SYSTEM Registers 0x%08x == 0x%08x. (PC=%08x)\n", offset*4, m_sysregs[offset], cpu_get_pc(&space.device()));
+ // printf("HNG64 writing to SYSTEM Registers 0x%08x == 0x%08x. (PC=%08x)\n", offset*4, m_sysregs[offset], space.device().safe_pc());
}
}
@@ -751,7 +751,7 @@ READ32_MEMBER(hng64_state::racing_io_r)
READ32_MEMBER(hng64_state::hng64_dualport_r)
{
- //printf("dualport R %08x %08x (PC=%08x)\n", offset*4, hng64_dualport[offset], cpu_get_pc(&space.device()));
+ //printf("dualport R %08x %08x (PC=%08x)\n", offset*4, hng64_dualport[offset], space.device().safe_pc());
/*
command table:
@@ -789,7 +789,7 @@ Beast Busters 2 outputs (all at offset == 0x1c):
WRITE32_MEMBER(hng64_state::hng64_dualport_w)
{
- //printf("dualport WRITE %08x %08x (PC=%08x)\n", offset*4, hng64_dualport[offset], cpu_get_pc(&space.device()));
+ //printf("dualport WRITE %08x %08x (PC=%08x)\n", offset*4, hng64_dualport[offset], space.device().safe_pc());
COMBINE_DATA (&m_dualport[offset]);
}
@@ -862,8 +862,8 @@ WRITE32_MEMBER(hng64_state::dl_w)
#if 0
READ32_MEMBER(hng64_state::dl_r)
{
- //mame_printf_debug("dl R (%08x) : %x %x\n", cpu_get_pc(&space.device()), offset, hng64_dl[offset]);
- //usrintf_showmessage("dl R (%08x) : %x %x", cpu_get_pc(&space.device()), offset, hng64_dl[offset]);
+ //mame_printf_debug("dl R (%08x) : %x %x\n", space.device().safe_pc(), offset, hng64_dl[offset]);
+ //usrintf_showmessage("dl R (%08x) : %x %x", space.device().safe_pc(), offset, hng64_dl[offset]);
return hng64_dl[offset];
}
#endif