summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/tmnt.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/tmnt.c')
-rw-r--r--src/mame/drivers/tmnt.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/mame/drivers/tmnt.c b/src/mame/drivers/tmnt.c
index a0f28a2ceb3..8efaa2389b5 100644
--- a/src/mame/drivers/tmnt.c
+++ b/src/mame/drivers/tmnt.c
@@ -278,7 +278,7 @@ static SAMPLES_START( tmnt_decode_sample )
running_machine &machine = device.machine();
tmnt_state *state = machine.driver_data<tmnt_state>();
int i;
- UINT8 *source = machine.region("title")->base();
+ UINT8 *source = state->memregion("title")->base();
state->save_item(NAME(state->m_sampledata));
@@ -925,7 +925,7 @@ WRITE16_MEMBER(tmnt_state::tmnt2_1c0800_w)
CellSrc = m_tmnt2_1c0800[0x00] | (m_tmnt2_1c0800[0x01] << 16 );
// if (CellDest >= 0x180000 && CellDest < 0x183fe0) {
CellVar -= 0x104000;
- src = (UINT16 *)(machine().region("maincpu")->base() + CellSrc);
+ src = (UINT16 *)(machine().root_device().memregion("maincpu")->base() + CellSrc);
CellVar >>= 1;
@@ -2604,7 +2604,7 @@ static const k054539_interface k054539_config =
static MACHINE_START( prmrsocr )
{
MACHINE_START_CALL(common);
- UINT8 *ROM = machine.region("audiocpu")->base();
+ UINT8 *ROM = machine.root_device().memregion("audiocpu")->base();
machine.root_device().membank("bank1")->configure_entries(0, 8, &ROM[0x10000], 0x4000);
}
@@ -4079,8 +4079,8 @@ static DRIVER_INIT( mia )
be shuffled around because the ROMs are connected differently to the
051962 custom IC.
*/
- gfxdata = machine.region("gfx1")->base();
- len = machine.region("gfx1")->bytes();
+ gfxdata = machine.root_device().memregion("gfx1")->base();
+ len = machine.root_device().memregion("gfx1")->bytes();
for (i = 0; i < len; i += 4)
{
for (j = 0; j < 4; j++)
@@ -4100,8 +4100,8 @@ static DRIVER_INIT( mia )
be shuffled around because the ROMs are connected differently to the
051937 custom IC.
*/
- gfxdata = machine.region("gfx2")->base();
- len = machine.region("gfx2")->bytes();
+ gfxdata = machine.root_device().memregion("gfx2")->base();
+ len = machine.root_device().memregion("gfx2")->bytes();
for (i = 0; i < len; i += 4)
{
for (j = 0; j < 4; j++)
@@ -4172,8 +4172,8 @@ static DRIVER_INIT( tmnt )
be shuffled around because the ROMs are connected differently to the
051962 custom IC.
*/
- gfxdata = machine.region("gfx1")->base();
- len = machine.region("gfx1")->bytes();
+ gfxdata = machine.root_device().memregion("gfx1")->base();
+ len = machine.root_device().memregion("gfx1")->bytes();
for (i = 0; i < len; i += 4)
{
for (j = 0; j < 4; j++)
@@ -4193,8 +4193,8 @@ static DRIVER_INIT( tmnt )
be shuffled around because the ROMs are connected differently to the
051937 custom IC.
*/
- gfxdata = machine.region("gfx2")->base();
- len = machine.region("gfx2")->bytes();
+ gfxdata = machine.root_device().memregion("gfx2")->base();
+ len = machine.root_device().memregion("gfx2")->bytes();
for (i = 0; i < len; i += 4)
{
for (j = 0; j < 4; j++)
@@ -4211,7 +4211,7 @@ static DRIVER_INIT( tmnt )
temp = auto_alloc_array(machine, UINT8, len);
memcpy(temp, gfxdata, len);
- code_conv_table = &machine.region("proms")->base()[0x0000];
+ code_conv_table = &machine.root_device().memregion("proms")->base()[0x0000];
for (A = 0; A < len / 4; A++)
{
#define CA0 0