summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video/tx1.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/video/tx1.c')
-rw-r--r--src/mame/video/tx1.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/mame/video/tx1.c b/src/mame/video/tx1.c
index bcd4613a75c..19c4f92f1f9 100644
--- a/src/mame/video/tx1.c
+++ b/src/mame/video/tx1.c
@@ -416,7 +416,7 @@ static void tx1_draw_road(running_machine &machine, UINT8 *bitmap)
UINT8 pix[2][4][3];
/* Road slice map ROMs */
- const UINT8 *const gfx3 = machine.root_device().memregion("gfx3")->base();
+ const UINT8 *const gfx3 = state->memregion("gfx3")->base();
const UINT8 *const rom_a = gfx3;
const UINT8 *const rom_b = gfx3 + 0x2000;
const UINT8 *const rom_c = gfx3 + 0x4000;
@@ -859,15 +859,15 @@ static void tx1_draw_objects(running_machine &machine, UINT8 *bitmap)
UINT32 offs;
/* The many lookup table ROMs */
- const UINT8 *const ic48 = machine.root_device().memregion("user3")->base();
+ const UINT8 *const ic48 = state->memregion("user3")->base();
const UINT8 *const ic281 = ic48 + 0x2000;
- const UINT8 *const proms = machine.root_device().memregion("proms")->base();
+ const UINT8 *const proms = state->memregion("proms")->base();
const UINT8 *const ic190 = proms + 0xc00;
const UINT8 *const ic162 = proms + 0xe00;
const UINT8 *const ic25 = proms + 0x1000;
- const UINT8 *const ic106 = machine.root_device().memregion("obj_map")->base();
+ const UINT8 *const ic106 = state->memregion("obj_map")->base();
const UINT8 *const ic73 = ic106 + 0x4000;
const UINT8 *const pixdata_rgn = state->memregion("obj_tiles")->base();
@@ -1300,7 +1300,7 @@ static void buggyboy_draw_char(running_machine &machine, UINT8 *bitmap, int wide
UINT32 x_mask;
/* 2bpp characters */
- chars = machine.root_device().memregion("char_tiles")->base();
+ chars = state->memregion("char_tiles")->base();
gfx2 = state->memregion("char_tiles")->base() + 0x4000;
/* X/Y scroll values are the last word in char RAM */
@@ -1535,7 +1535,7 @@ static void buggyboy_draw_road(running_machine &machine, UINT8 *bitmap)
UINT32 rva20_6;
/* ROM/PROM lookup tables */
- const UINT8 *rcols = (UINT8*)(machine.root_device().memregion("proms")->base() + 0x1500);
+ const UINT8 *rcols = (UINT8*)(state->memregion("proms")->base() + 0x1500);
const UINT8 *rom = state->memregion("road")->base();
const UINT8 *prom0 = rom + 0x4000;
const UINT8 *prom1 = rom + 0x4200;
@@ -2167,7 +2167,7 @@ static void buggybjr_draw_road(running_machine &machine, UINT8 *bitmap, int wide
UINT32 rva20_6;
/* ROM/PROM lookup tables */
- const UINT8 *rcols = (UINT8*)(machine.root_device().memregion("proms")->base() + 0x1500);
+ const UINT8 *rcols = (UINT8*)(state->memregion("proms")->base() + 0x1500);
const UINT8 *rom = state->memregion("road")->base();
const UINT8 *prom0 = rom + 0x4000;
const UINT8 *prom1 = rom + 0x4200;
@@ -2580,14 +2580,14 @@ static void buggyboy_draw_objs(running_machine &machine, UINT8 *bitmap, int wide
UINT32 x_stride;
/* The many lookup table ROMs */
- const UINT8 *const bug13 = (UINT8*)machine.root_device().memregion("obj_luts")->base();
+ const UINT8 *const bug13 = (UINT8*)state->memregion("obj_luts")->base();
const UINT8 *const bug18s = bug13 + 0x2000;
- const UINT8 *const bb8 = (UINT8*)machine.root_device().memregion("proms")->base() + 0x1600;
+ const UINT8 *const bb8 = (UINT8*)state->memregion("proms")->base() + 0x1600;
- const UINT8 *const bug16s = (UINT8*)machine.root_device().memregion("obj_map")->base();
+ const UINT8 *const bug16s = (UINT8*)state->memregion("obj_map")->base();
const UINT8 *const bug17s = bug16s + 0x8000;
- const UINT8 *const bb9o = (UINT8*)machine.root_device().memregion("proms")->base() + 0x500;
+ const UINT8 *const bb9o = (UINT8*)state->memregion("proms")->base() + 0x500;
const UINT8 *const bb9e = bb9o + 0x800;
const UINT8 *const pixdata_rgn = (UINT8*)state->memregion("obj_tiles")->base();