summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/dorachan.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/dorachan.c')
-rw-r--r--src/mame/drivers/dorachan.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mame/drivers/dorachan.c b/src/mame/drivers/dorachan.c
index 40b81e5ec89..70cd1c9844f 100644
--- a/src/mame/drivers/dorachan.c
+++ b/src/mame/drivers/dorachan.c
@@ -46,14 +46,14 @@ CUSTOM_INPUT_MEMBER(dorachan_state::dorachan_protection_r)
{
UINT8 ret = 0;
- switch (cpu_get_previouspc(m_main_cpu))
+ switch (m_main_cpu->safe_pcbase())
{
case 0x70ce: ret = 0xf2; break;
case 0x72a2: ret = 0xd5; break;
case 0x72b5: ret = 0xcb; break;
default:
- mame_printf_debug("unhandled $2400 read @ %x\n", cpu_get_previouspc(m_main_cpu));
+ mame_printf_debug("unhandled $2400 read @ %x\n", m_main_cpu->safe_pcbase());
break;
}