summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/segaorun.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/segaorun.c')
-rw-r--r--src/mame/drivers/segaorun.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mame/drivers/segaorun.c b/src/mame/drivers/segaorun.c
index 652ee4d2228..1b78acd047a 100644
--- a/src/mame/drivers/segaorun.c
+++ b/src/mame/drivers/segaorun.c
@@ -2126,22 +2126,22 @@ static DRIVER_INIT( outrunb )
state->m_custom_io_w = outrun_custom_io_w;
/* main CPU: swap bits 11,12 and 6,7 */
- word = (UINT16 *)machine.region("maincpu")->base();
- length = machine.region("maincpu")->bytes() / 2;
+ word = (UINT16 *)machine.root_device().memregion("maincpu")->base();
+ length = machine.root_device().memregion("maincpu")->bytes() / 2;
for (i = 0; i < length; i++)
word[i] = BITSWAP16(word[i], 15,14,11,12,13,10,9,8,6,7,5,4,3,2,1,0);
/* sub CPU: swap bits 14,15 and 2,3 */
- word = (UINT16 *)machine.region("sub")->base();
- length = machine.region("sub")->bytes() / 2;
+ word = (UINT16 *)machine.root_device().memregion("sub")->base();
+ length = machine.root_device().memregion("sub")->bytes() / 2;
for (i = 0; i < length; i++)
word[i] = BITSWAP16(word[i], 14,15,13,12,11,10,9,8,7,6,5,4,2,3,1,0);
/* road gfx */
/* rom a-2.bin: swap bits 6,7 */
/* rom a-3.bin: swap bits 5,6 */
- byte = machine.region("gfx3")->base();
- length = machine.region("gfx3")->bytes() / 2;
+ byte = machine.root_device().memregion("gfx3")->base();
+ length = machine.root_device().memregion("gfx3")->bytes() / 2;
for (i = 0; i < length; i++)
{
byte[i] = BITSWAP8(byte[i], 6,7,5,4,3,2,1,0);
@@ -2149,8 +2149,8 @@ static DRIVER_INIT( outrunb )
}
/* Z80 code: swap bits 5,6 */
- byte = machine.region("soundcpu")->base();
- length = machine.region("soundcpu")->bytes();
+ byte = machine.root_device().memregion("soundcpu")->base();
+ length = machine.root_device().memregion("soundcpu")->bytes();
for (i = 0; i < length; i++)
byte[i] = BITSWAP8(byte[i], 7,5,6,4,3,2,1,0);
}