mirror of
https://github.com/holub/mame
synced 2025-10-09 09:44:40 +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;
|
UINT8 ret = 0;
|
||||||
|
|
||||||
switch (((device_t*)m_maincpu)->safe_pcbase())
|
switch (m_maincpu->pcbase())
|
||||||
{
|
{
|
||||||
case 0x70ce: ret = 0xf2; break;
|
case 0x70ce: ret = 0xf2; break;
|
||||||
case 0x72a2: ret = 0xd5; break;
|
case 0x72a2: ret = 0xd5; break;
|
||||||
case 0x72b5: ret = 0xcb; break;
|
case 0x72b5: ret = 0xcb; break;
|
||||||
|
|
||||||
default:
|
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;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user