diff options
Diffstat (limited to 'src/mame/drivers/namcos86.c')
-rw-r--r-- | src/mame/drivers/namcos86.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/mame/drivers/namcos86.c b/src/mame/drivers/namcos86.c index 99a8c0bea25..cff065b6cde 100644 --- a/src/mame/drivers/namcos86.c +++ b/src/mame/drivers/namcos86.c @@ -184,18 +184,18 @@ TODO: WRITE8_MEMBER(namcos86_state::bankswitch1_w) { - UINT8 *base = machine().region("cpu1")->base() + 0x10000; + UINT8 *base = memregion("cpu1")->base() + 0x10000; /* if the ROM expansion module is available, don't do anything. This avoids conflict */ /* with bankswitch1_ext_w() in wndrmomo */ - if (machine().region("user1")->base()) return; + if (machine().root_device().memregion("user1")->base()) return; membank("bank1")->set_base(base + ((data & 0x03) * 0x2000)); } WRITE8_MEMBER(namcos86_state::bankswitch1_ext_w) { - UINT8 *base = machine().region("user1")->base(); + UINT8 *base = memregion("user1")->base(); if (base == 0) return; @@ -204,7 +204,7 @@ WRITE8_MEMBER(namcos86_state::bankswitch1_ext_w) WRITE8_MEMBER(namcos86_state::bankswitch2_w) { - UINT8 *base = machine().region("cpu2")->base() + 0x10000; + UINT8 *base = memregion("cpu2")->base() + 0x10000; membank("bank2")->set_base(base + ((data & 0x03) * 0x2000)); } @@ -294,7 +294,7 @@ WRITE8_MEMBER(namcos86_state::namcos86_led_w) WRITE8_MEMBER(namcos86_state::cus115_w) { /* make sure the expansion board is present */ - if (!machine().region("user1")->base()) + if (!machine().root_device().memregion("user1")->base()) { popmessage("expansion board not present"); return; @@ -324,7 +324,7 @@ WRITE8_MEMBER(namcos86_state::cus115_w) static MACHINE_RESET( namco86 ) { - UINT8 *base = machine.region("cpu1")->base() + 0x10000; + UINT8 *base = machine.root_device().memregion("cpu1")->base() + 0x10000; machine.root_device().membank("bank1")->set_base(base); } @@ -1471,8 +1471,8 @@ static DRIVER_INIT( namco86 ) UINT8 *buffer; /* shuffle tile ROMs so regular gfx unpack routines can be used */ - gfx = machine.region("gfx1")->base(); - size = machine.region("gfx1")->bytes() * 2 / 3; + gfx = machine.root_device().memregion("gfx1")->base(); + size = machine.root_device().memregion("gfx1")->bytes() * 2 / 3; buffer = auto_alloc_array(machine, UINT8, size ); { @@ -1496,8 +1496,8 @@ static DRIVER_INIT( namco86 ) auto_free( machine, buffer ); } - gfx = machine.region("gfx2")->base(); - size = machine.region("gfx2")->bytes() * 2 / 3; + gfx = machine.root_device().memregion("gfx2")->base(); + size = machine.root_device().memregion("gfx2")->bytes() * 2 / 3; buffer = auto_alloc_array(machine, UINT8, size ); { |