summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/commando.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/commando.c')
-rw-r--r--src/mame/drivers/commando.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mame/drivers/commando.c b/src/mame/drivers/commando.c
index a78d34a0ad7..9840dc7c04c 100644
--- a/src/mame/drivers/commando.c
+++ b/src/mame/drivers/commando.c
@@ -517,7 +517,7 @@ ROM_END
static DRIVER_INIT( commando )
{
address_space *space = machine.device("maincpu")->memory().space(AS_PROGRAM);
- UINT8 *rom = machine.region("maincpu")->base();
+ UINT8 *rom = machine.root_device().memregion("maincpu")->base();
UINT8 *decrypt = auto_alloc_array(machine, UINT8, 0xc000);
int A;
@@ -537,7 +537,7 @@ static DRIVER_INIT( commando )
static DRIVER_INIT( spaceinv )
{
address_space *space = machine.device("maincpu")->memory().space(AS_PROGRAM);
- UINT8 *rom = machine.region("maincpu")->base();
+ UINT8 *rom = machine.root_device().memregion("maincpu")->base();
UINT8 *decrypt = auto_alloc_array(machine, UINT8, 0xc000);
int A;