diff options
Diffstat (limited to 'src/mame/machine/galaxold.c')
-rw-r--r-- | src/mame/machine/galaxold.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mame/machine/galaxold.c b/src/mame/machine/galaxold.c index fef06e6c2bc..66a1f2a3c32 100644 --- a/src/mame/machine/galaxold.c +++ b/src/mame/machine/galaxold.c @@ -132,7 +132,7 @@ WRITE8_MEMBER(galaxold_state::galaxold_leds_w) #ifdef UNUSED_FUNCTION READ8_MEMBER(galaxold_state::checkmaj_protection_r) { - switch (cpu_get_pc(&space.device())) + switch (space.device().safe_pc()) { case 0x0f15: return 0xf5; case 0x0f8f: return 0x7c; @@ -141,7 +141,7 @@ READ8_MEMBER(galaxold_state::checkmaj_protection_r) case 0x10f1: return 0xaa; case 0x1402: return 0xaa; default: - logerror("Unknown protection read. PC=%04X\n",cpu_get_pc(&space.device())); + logerror("Unknown protection read. PC=%04X\n",space.device().safe_pc()); } return 0; @@ -225,23 +225,23 @@ DRIVER_INIT_MEMBER(galaxold_state,dingoe) READ8_MEMBER(galaxold_state::scramblb_protection_1_r) { - switch (cpu_get_pc(&space.device())) + switch (space.device().safe_pc()) { case 0x01da: return 0x80; case 0x01e4: return 0x00; default: - logerror("%04x: read protection 1\n",cpu_get_pc(&space.device())); + logerror("%04x: read protection 1\n",space.device().safe_pc()); return 0; } } READ8_MEMBER(galaxold_state::scramblb_protection_2_r) { - switch (cpu_get_pc(&space.device())) + switch (space.device().safe_pc()) { case 0x01ca: return 0x90; default: - logerror("%04x: read protection 2\n",cpu_get_pc(&space.device())); + logerror("%04x: read protection 2\n",space.device().safe_pc()); return 0; } } |