summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/atarisy4.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/atarisy4.c')
-rw-r--r--src/mame/drivers/atarisy4.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mame/drivers/atarisy4.c b/src/mame/drivers/atarisy4.c
index 3f655067e1e..8efaa96524f 100644
--- a/src/mame/drivers/atarisy4.c
+++ b/src/mame/drivers/atarisy4.c
@@ -969,13 +969,13 @@ static DRIVER_INIT( laststar )
state->m_shared_ram[0] = auto_alloc_array_clear(machine, UINT16, 0x2000);
/* Populate the 68000 address space with data from the HEX files */
- load_hexfile(main, machine.region("code")->base());
- load_hexfile(main, machine.region("data")->base());
+ load_hexfile(main, machine.root_device().memregion("code")->base());
+ load_hexfile(main, machine.root_device().memregion("data")->base());
/* Set up the DSP */
state->membank("dsp0_bank0")->set_base(state->m_shared_ram[0]);
state->membank("dsp0_bank1")->set_base(&state->m_shared_ram[0][0x800]);
- load_ldafile(machine.device("dsp0")->memory().space(AS_PROGRAM), machine.region("dsp")->base());
+ load_ldafile(machine.device("dsp0")->memory().space(AS_PROGRAM), state->memregion("dsp")->base());
}
static DRIVER_INIT( airrace )
@@ -986,17 +986,17 @@ static DRIVER_INIT( airrace )
state->m_shared_ram[1] = auto_alloc_array_clear(machine, UINT16, 0x4000);
/* Populate RAM with data from the HEX files */
- load_hexfile(machine.device("maincpu")->memory().space(AS_PROGRAM), machine.region("code")->base());
+ load_hexfile(machine.device("maincpu")->memory().space(AS_PROGRAM), machine.root_device().memregion("code")->base());
/* Set up the first DSP */
state->membank("dsp0_bank0")->set_base(state->m_shared_ram[0]);
state->membank("dsp0_bank1")->set_base(&state->m_shared_ram[0][0x800]);
- load_ldafile(machine.device("dsp0")->memory().space(AS_PROGRAM), machine.region("dsp")->base());
+ load_ldafile(machine.device("dsp0")->memory().space(AS_PROGRAM), machine.root_device().memregion("dsp")->base());
/* Set up the second DSP */
state->membank("dsp1_bank0")->set_base(state->m_shared_ram[1]);
state->membank("dsp1_bank1")->set_base(&state->m_shared_ram[1][0x800]);
- load_ldafile(machine.device("dsp1")->memory().space(AS_PROGRAM), machine.region("dsp")->base());
+ load_ldafile(machine.device("dsp1")->memory().space(AS_PROGRAM), state->memregion("dsp")->base());
}
static MACHINE_RESET( atarisy4 )