summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/shangha3.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/shangha3.c')
-rw-r--r--src/mame/drivers/shangha3.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mame/drivers/shangha3.c b/src/mame/drivers/shangha3.c
index c80ee11811d..184125b488a 100644
--- a/src/mame/drivers/shangha3.c
+++ b/src/mame/drivers/shangha3.c
@@ -46,13 +46,13 @@ READ16_MEMBER(shangha3_state::shangha3_prot_r)
{
static const int result[] = { 0x0,0x1,0x3,0x7,0xf,0xe,0xc,0x8,0x0};
- logerror("PC %04x: read 20004e\n",cpu_get_pc(&space.device()));
+ logerror("PC %04x: read 20004e\n",space.device().safe_pc());
return result[m_prot_count++ % 9];
}
WRITE16_MEMBER(shangha3_state::shangha3_prot_w)
{
- logerror("PC %04x: write %02x to 20004e\n",cpu_get_pc(&space.device()),data);
+ logerror("PC %04x: write %02x to 20004e\n",space.device().safe_pc(),data);
}