summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine/mc8123.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/machine/mc8123.c')
-rw-r--r--src/mame/machine/mc8123.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mame/machine/mc8123.c b/src/mame/machine/mc8123.c
index 7ac7a4dfd31..2b5e3f6fbab 100644
--- a/src/mame/machine/mc8123.c
+++ b/src/mame/machine/mc8123.c
@@ -381,8 +381,8 @@ void mc8123_decrypt_rom(running_machine &machine, const char *cpu, const char *k
int fixed_length = numbanks == 1 ? 0xc000 : 0x8000;
UINT8 *decrypted1 = auto_alloc_array(machine, UINT8, fixed_length);
UINT8 *decrypted2 = numbanks > 1 ? auto_alloc_array(machine, UINT8, 0x4000 * numbanks) : 0;
- UINT8 *rom = machine.region(cpu)->base();
- UINT8 *key = machine.region(keyrgn)->base();
+ UINT8 *rom = machine.root_device().memregion(cpu)->base();
+ UINT8 *key = machine.root_device().memregion(keyrgn)->base();
int A, bank;
space->set_decrypted_region(0x0000, fixed_length-1, decrypted1);