mirror of
https://github.com/holub/mame
synced 2025-10-08 09:30:17 +03:00
call pcbase() instead to save a cast (nw)
This commit is contained in:
parent
c8d85cfc20
commit
361f42eff7
@ -50,14 +50,14 @@ CUSTOM_INPUT_MEMBER(dorachan_state::dorachan_protection_r)
|
||||
{
|
||||
UINT8 ret = 0;
|
||||
|
||||
switch (((device_t*)m_maincpu)->safe_pcbase())
|
||||
switch (m_maincpu->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", ((device_t*)m_maincpu)->safe_pcbase());
|
||||
mame_printf_debug("unhandled $2400 read @ %x\n", m_maincpu->pcbase());
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user