summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/machine/amigacrt.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mess/machine/amigacrt.c')
-rw-r--r--src/mess/machine/amigacrt.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mess/machine/amigacrt.c b/src/mess/machine/amigacrt.c
index 0298d617e9b..e5f88ff383c 100644
--- a/src/mess/machine/amigacrt.c
+++ b/src/mess/machine/amigacrt.c
@@ -113,7 +113,7 @@ static void amiga_ar1_nmi( running_machine &machine )
static WRITE16_HANDLER( amiga_ar1_chipmem_w )
{
amiga_state *state = space->machine().driver_data<amiga_state>();
- int pc = cpu_get_pc(&space->device());
+ int pc = space->device().safe_pc();
/* see if we're inside the AR1 rom */
if ( ((pc >> 16) & 0xff ) != 0xf0 )
@@ -192,7 +192,7 @@ static void amiga_ar23_freeze( running_machine &machine );
static READ16_HANDLER( amiga_ar23_cia_r )
{
- int pc = cpu_get_pc(&space->device());
+ int pc = space->device().safe_pc();
if ( ACCESSING_BITS_0_7 && offset == 2048 && pc >= 0x40 && pc < 0x120 )
{
@@ -263,7 +263,7 @@ static WRITE16_HANDLER( amiga_ar23_chipmem_w )
static void amiga_ar23_freeze( running_machine &machine )
{
amiga_state *state = machine.driver_data<amiga_state>();
- int pc = cpu_get_pc(machine.device("maincpu"));
+ int pc = machine.device("maincpu")->safe_pc();
/* only freeze if we're not inside the cart's ROM */
if ( ((pc >> 16) & 0xfe ) != 0x40 )
@@ -299,7 +299,7 @@ static void amiga_ar23_nmi( running_machine &machine )
#if 0
static WRITE16_HANDLER( amiga_ar23_custom_w )
{
- int pc = cpu_get_pc(&space->device());
+ int pc = space->device().safe_pc();
/* see if we're inside the AR2 rom */
if ( ((pc >> 16) & 0xfe ) != 0x40 )
@@ -320,7 +320,7 @@ static READ16_HANDLER( amiga_ar23_custom_r )
{
UINT16 data = amiga_custom_r( offset, mem_mask );
- int pc = cpu_get_pc(&space->device());
+ int pc = space->device().safe_pc();
/* see if we're inside the AR2 rom */
if ( ((pc >> 16) & 0xfe ) != 0x40 )