summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine/kabuki.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/machine/kabuki.c')
-rw-r--r--src/mame/machine/kabuki.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mame/machine/kabuki.c b/src/mame/machine/kabuki.c
index f200de06142..e95ce4f1478 100644
--- a/src/mame/machine/kabuki.c
+++ b/src/mame/machine/kabuki.c
@@ -162,9 +162,9 @@ static void kabuki_decode(UINT8 *src,UINT8 *dest_op,UINT8 *dest_data,
static void mitchell_decode(running_machine &machine, int swap_key1,int swap_key2,int addr_key,int xor_key)
{
address_space *space = machine.device("maincpu")->memory().space(AS_PROGRAM);
- UINT8 *rom = machine.region("maincpu")->base();
- UINT8 *decrypt = auto_alloc_array(machine, UINT8, machine.region("maincpu")->bytes());
- int numbanks = (machine.region("maincpu")->bytes() - 0x10000) / 0x4000;
+ UINT8 *rom = machine.root_device().memregion("maincpu")->base();
+ UINT8 *decrypt = auto_alloc_array(machine, UINT8, machine.root_device().memregion("maincpu")->bytes());
+ int numbanks = (machine.root_device().memregion("maincpu")->bytes() - 0x10000) / 0x4000;
int i;
space->set_decrypted_region(0x0000, 0x7fff, decrypt);
@@ -204,7 +204,7 @@ static void cps1_decode(running_machine &machine,int swap_key1,int swap_key2,int
{
address_space *space = machine.device("audiocpu")->memory().space(AS_PROGRAM);
UINT8 *decrypt = auto_alloc_array(machine, UINT8, 0x8000);
- UINT8 *rom = machine.region("audiocpu")->base();
+ UINT8 *rom = machine.root_device().memregion("audiocpu")->base();
space->set_decrypted_region(0x0000, 0x7fff, decrypt);
kabuki_decode(rom,decrypt,rom,0x0000,0x8000, swap_key1,swap_key2,addr_key,xor_key);