diff options
Diffstat (limited to 'src/mame/drivers/offtwall.c')
-rw-r--r-- | src/mame/drivers/offtwall.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mame/drivers/offtwall.c b/src/mame/drivers/offtwall.c index 393ed336558..a40baf374f8 100644 --- a/src/mame/drivers/offtwall.c +++ b/src/mame/drivers/offtwall.c @@ -163,11 +163,11 @@ READ16_MEMBER(offtwall_state::bankrom_r) { /* this is the banked ROM read */ - logerror("%06X: %04X\n", cpu_get_previouspc(&space.device()), offset); + logerror("%06X: %04X\n", space.device().safe_pcbase(), offset); /* if the values are $3e000 or $3e002 are being read by code just below the ROM bank area, we need to return the correct value to give the proper checksum */ - if ((offset == 0x3000 || offset == 0x3001) && cpu_get_previouspc(&space.device()) > 0x37000) + if ((offset == 0x3000 || offset == 0x3001) && space.device().safe_pcbase() > 0x37000) { UINT32 checksum = (space.read_word(0x3fd210) << 16) | space.read_word(0x3fd212); UINT32 us = 0xaaaa5555 - checksum; @@ -202,7 +202,7 @@ READ16_MEMBER(offtwall_state::bankrom_r) READ16_MEMBER(offtwall_state::spritecache_count_r) { - int prevpc = cpu_get_previouspc(&space.device()); + int prevpc = space.device().safe_pcbase(); /* if this read is coming from $99f8 or $9992, it's in the sprite copy loop */ if (prevpc == 0x99f8 || prevpc == 0x9992) @@ -256,7 +256,7 @@ READ16_MEMBER(offtwall_state::spritecache_count_r) READ16_MEMBER(offtwall_state::unknown_verify_r) { - int prevpc = cpu_get_previouspc(&space.device()); + int prevpc = space.device().safe_pcbase(); if (prevpc < 0x5c5e || prevpc > 0xc432) return m_unknown_verify_base[offset]; else |