diff options
Diffstat (limited to 'src/mame/drivers/dkong.c')
-rw-r--r-- | src/mame/drivers/dkong.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mame/drivers/dkong.c b/src/mame/drivers/dkong.c index ccbe1a23409..6d8756b0371 100644 --- a/src/mame/drivers/dkong.c +++ b/src/mame/drivers/dkong.c @@ -424,7 +424,7 @@ static MACHINE_START( dkong2b ) static MACHINE_START( s2650 ) { dkong_state *state = machine.driver_data<dkong_state>(); - UINT8 *p = machine.region("user1")->base(); + UINT8 *p = state->memregion("user1")->base(); const char *game_name = machine.system().name; int i; @@ -487,7 +487,7 @@ static MACHINE_RESET( dkong ) static MACHINE_RESET( strtheat ) { dkong_state *state = machine.driver_data<dkong_state>(); - UINT8 *ROM = machine.region("maincpu")->base(); + UINT8 *ROM = state->memregion("maincpu")->base(); MACHINE_RESET_CALL(dkong); @@ -500,7 +500,7 @@ static MACHINE_RESET( strtheat ) static MACHINE_RESET( drakton ) { dkong_state *state = machine.driver_data<dkong_state>(); - UINT8 *ROM = machine.region("maincpu")->base(); + UINT8 *ROM = state->memregion("maincpu")->base(); MACHINE_RESET_CALL(dkong); @@ -1637,7 +1637,7 @@ static void braze_decrypt_rom(running_machine &machine, UINT8 *dest) UINT32 mem; UINT32 newmem; - ROM = machine.region("braze")->base(); + ROM = machine.root_device().memregion("braze")->base(); for (mem=0;mem<0x10000;mem++) { @@ -3065,7 +3065,7 @@ static void drakton_decrypt_rom(running_machine &machine, UINT8 mod, int offs, i UINT8 *ROM; int mem; - ROM = machine.region("maincpu")->base(); + ROM = machine.root_device().memregion("maincpu")->base(); for (mem=0;mem<0x4000;mem++) { @@ -3091,7 +3091,7 @@ static void drakton_decrypt_rom(running_machine &machine, UINT8 mod, int offs, i static DRIVER_INIT( herodk ) { int A; - UINT8 *rom = machine.region("maincpu")->base(); + UINT8 *rom = machine.root_device().memregion("maincpu")->base(); /* swap data lines D3 and D4 */ for (A = 0;A < 0x8000;A++) @@ -3182,7 +3182,7 @@ static DRIVER_INIT( dkongx ) static DRIVER_INIT( dkingjr ) { - UINT8 *prom = machine.region("proms")->base(); + UINT8 *prom = machine.root_device().memregion("proms")->base(); for( int i=0; i<0x200; ++i) { prom[i]^=0xff; // invert color data |