diff options
Diffstat (limited to 'src/mame/drivers/strnskil.c')
-rw-r--r-- | src/mame/drivers/strnskil.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mame/drivers/strnskil.c b/src/mame/drivers/strnskil.c index a21348da9e1..671591ce750 100644 --- a/src/mame/drivers/strnskil.c +++ b/src/mame/drivers/strnskil.c @@ -38,7 +38,7 @@ READ8_MEMBER(strnskil_state::pettanp_protection_r) { int res; - switch (cpu_get_pc(&space.device())) + switch (space.device().safe_pc()) { case 0x6066: res = 0xa5; break; case 0x60dc: res = 0x20; break; /* bits 0-3 unknown */ @@ -49,7 +49,7 @@ READ8_MEMBER(strnskil_state::pettanp_protection_r) default: res = 0xff; break; } - logerror("%04x: protection_r -> %02x\n",cpu_get_pc(&space.device()),res); + logerror("%04x: protection_r -> %02x\n",space.device().safe_pc(),res); return res; } @@ -57,7 +57,7 @@ READ8_MEMBER(strnskil_state::banbam_protection_r) { int res; - switch (cpu_get_pc(&space.device())) + switch (space.device().safe_pc()) { case 0x6094: res = 0xa5; break; case 0x6118: res = 0x20; break; /* bits 0-3 unknown */ @@ -68,13 +68,13 @@ READ8_MEMBER(strnskil_state::banbam_protection_r) default: res = 0xff; break; } - logerror("%04x: protection_r -> %02x\n",cpu_get_pc(&space.device()),res); + logerror("%04x: protection_r -> %02x\n",space.device().safe_pc(),res); return res; } WRITE8_MEMBER(strnskil_state::protection_w) { - logerror("%04x: protection_w %02x\n",cpu_get_pc(&space.device()),data); + logerror("%04x: protection_w %02x\n",space.device().safe_pc(),data); } /****************************************************************************/ |