summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/tcl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/tcl.c')
-rw-r--r--src/mame/drivers/tcl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mame/drivers/tcl.c b/src/mame/drivers/tcl.c
index 33d61e94ed4..4bc5dc9efa7 100644
--- a/src/mame/drivers/tcl.c
+++ b/src/mame/drivers/tcl.c
@@ -189,8 +189,8 @@ static DRIVER_INIT(tcl)
/* only the first part is decrypted (and verified)*/
address_space *space = machine.device("maincpu")->memory().space(AS_PROGRAM);
- UINT8 *dest = machine.region("maincpu")->base();
- int len = machine.region("maincpu")->bytes();
+ UINT8 *dest = machine.root_device().memregion("maincpu")->base();
+ int len = machine.root_device().memregion("maincpu")->bytes();
UINT8 *src = auto_alloc_array(machine, UINT8, len);
int i,idx=0;