summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/magicfly.c
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2012-04-11 14:20:08 +0000
committer Miodrag Milanovic <mmicko@gmail.com>2012-04-11 14:20:08 +0000
commit8382d75558aa344b82c89622fc9e71bfc68a779a (patch)
tree230a6bd7ba036f69c17183872edd8c6704e8f274 /src/mame/drivers/magicfly.c
parent1903be787024fdf8b733a1a56970afbf1eae2d3d (diff)
Added target() on proper places (no whatsnew)
Diffstat (limited to 'src/mame/drivers/magicfly.c')
-rw-r--r--src/mame/drivers/magicfly.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/mame/drivers/magicfly.c b/src/mame/drivers/magicfly.c
index d0605fab00d..03f318370ce 100644
--- a/src/mame/drivers/magicfly.c
+++ b/src/mame/drivers/magicfly.c
@@ -443,13 +443,13 @@ public:
WRITE8_MEMBER(magicfly_state::magicfly_videoram_w)
{
- m_videoram[offset] = data;
+ m_videoram.target()[offset] = data;
m_bg_tilemap->mark_tile_dirty(offset);
}
WRITE8_MEMBER(magicfly_state::magicfly_colorram_w)
{
- m_colorram[offset] = data;
+ m_colorram.target()[offset] = data;
m_bg_tilemap->mark_tile_dirty(offset);
}
@@ -465,16 +465,16 @@ static TILE_GET_INFO( get_magicfly_tile_info )
x--- ---- Mirrored from bit 3. The code check this one to boot the game.
*/
- int attr = state->m_colorram[tile_index];
- int code = state->m_videoram[tile_index];
+ int attr = state->m_colorram.target()[tile_index];
+ int code = state->m_videoram.target()[tile_index];
int bank = (attr & 0x10) >> 4; /* bit 4 switch the gfx banks */
int color = attr & 0x07; /* bits 0-2 for color */
/* Seems that bit 7 is mirrored from bit 3 to have a normal boot */
/* Boot only check the first color RAM offset */
- state->m_colorram[0] = state->m_colorram[0] | ((state->m_colorram[0] & 0x08) << 4); /* only for 1st offset */
- //state->m_colorram[tile_index] = attr | ((attr & 0x08) << 4); /* for the whole color RAM */
+ state->m_colorram.target()[0] = state->m_colorram.target()[0] | ((state->m_colorram.target()[0] & 0x08) << 4); /* only for 1st offset */
+ //state->m_colorram.target()[tile_index] = attr | ((attr & 0x08) << 4); /* for the whole color RAM */
SET_TILE_INFO(bank, code, color, 0);
}
@@ -497,16 +497,16 @@ static TILE_GET_INFO( get_7mezzo_tile_info )
x--- ---- Mirrored from bit 2. The code check this one to boot the game.
*/
- int attr = state->m_colorram[tile_index];
- int code = state->m_videoram[tile_index];
+ int attr = state->m_colorram.target()[tile_index];
+ int code = state->m_videoram.target()[tile_index];
int bank = (attr & 0x10) >> 4; /* bit 4 switch the gfx banks */
int color = attr & 0x07; /* bits 0-2 for color */
/* Seems that bit 7 is mirrored from bit 2 to have a normal boot */
/* Boot only check the first color RAM offset */
- state->m_colorram[0] = state->m_colorram[0] | ((state->m_colorram[0] & 0x04) << 5); /* only for 1st offset */
- //state->m_colorram[tile_index] = attr | ((attr & 0x04) << 5); /* for the whole color RAM */
+ state->m_colorram.target()[0] = state->m_colorram.target()[0] | ((state->m_colorram.target()[0] & 0x04) << 5); /* only for 1st offset */
+ //state->m_colorram.target()[tile_index] = attr | ((attr & 0x04) << 5); /* for the whole color RAM */
SET_TILE_INFO(bank, code, color, 0);
}