static void get_tile_info_gaelco_screen1(int tile_index) { int data = gaelco_videoram[(0x1000/2) + (tile_index << 1)]; int data2 = gaelco_videoram[(0x1000/2) + (tile_index << 1) + 1]; int code = ((data & 0xfffc) >> 2); tile_info.priority = (data2 >> 6) & 0x03; SET_TILE_INFO(1, 0x4000 + code, data2 & 0x3f, TILE_FLIPYX(data & 0x03)) }
static TILE_GET_INFO( get_fof_txt_tile_info ) { fitfight_state *state = machine.driver_data<fitfight_state>(); int code = state->m_fof_txt_tileram[tile_index * 2 + 1]; int colr = state->m_fof_txt_tileram[tile_index * 2] & 0x1f; int xflip = (state->m_fof_txt_tileram[tile_index * 2] & 0x0020) >> 5; xflip ^= 1; SET_TILE_INFO(0, code, colr, TILE_FLIPYX(xflip)); }
static TILE_GET_INFO( get_pass_bg_tile_info ) { pass_state *state = (pass_state *)machine->driver_data; int tileno, fx; tileno = state->bg_videoram[tile_index] & 0x1fff; fx = (state->bg_videoram[tile_index] & 0xc000) >> 14; SET_TILE_INFO(1, tileno, 0, TILE_FLIPYX(fx)); }
static TILE_GET_INFO( get_tile_info_gaelco_screen1 ) { gaelco_state *state = machine->driver_data<gaelco_state>(); int data = state->videoram[(0x1000 / 2) + (tile_index << 1)]; int data2 = state->videoram[(0x1000 / 2) + (tile_index << 1) + 1]; int code = ((data & 0xfffc) >> 2); tileinfo->category = (data2 >> 6) & 0x03; SET_TILE_INFO(1, 0x4000 + code, data2 & 0x3f, TILE_FLIPYX(data & 0x03)); }
static void get_tile_info_gaelco_screen1(int tile_index) { int data = READ_WORD(&gaelco_videoram[0x1000 + (tile_index << 2)]); int data2 = READ_WORD(&gaelco_videoram[0x1000 + (tile_index << 2) + 2]); int code = ((data & 0xfffc) >> 2); tile_info.flags = TILE_FLIPYX(data & 0x03); tile_info.priority = (data2 >> 6) & 0x03; SET_TILE_INFO(1, 0x4000 + code, data2 & 0x3f); }
/* Run and Gun 2 / Rushing Heroes */ static TILE_GET_INFO( get_gx_psac_tile_info ) { int tileno, colour, flipx; UINT16 *map16 = (UINT16 *)gx_psacram; tileno = map16[tile_index*2+1] & 0x3fff; colour = (psac_colorbase << 4); flipx = 0; SET_TILE_INFO(0, tileno, colour, TILE_FLIPYX(flipx)); }
static TILE_GET_INFO( get_pass_fg_tile_info ) { pass_state *state = machine->driver_data<pass_state>(); int tileno, flip; tileno = state->fg_videoram[tile_index] & 0x3fff; flip = (state->fg_videoram[tile_index] & 0xc000) >>14; SET_TILE_INFO(0, tileno, 0, TILE_FLIPYX(flip)); }
static TILE_GET_INFO( get_rng_936_tile_info ) { rungun_state *state = machine.driver_data<rungun_state>(); int tileno, colour, flipx; tileno = state->m_936_videoram[tile_index * 2 + 1] & 0x3fff; flipx = (state->m_936_videoram[tile_index * 2 + 1] & 0xc000) >> 14; colour = 0x10 + (state->m_936_videoram[tile_index * 2] & 0x000f); SET_TILE_INFO(0, tileno, colour, TILE_FLIPYX(flipx)); }
static TILE_GET_INFO( get_fg_tile_info ) { UINT8 *base = memory_region(machine, "gfx5") + 0x20000 + 2*tile_index; int attr = base[0x10000]; int color = base[0]; int code = (base[0x10000+1]<<8) | base[1]; SET_TILE_INFO( 1, code, color, TILE_FLIPYX(attr & 3)); }
static void get_fg2_tile_info(int tile_index) { int code = ((silkroad_vidram2[tile_index] & 0xffff0000) >> 16 ); int color = ((silkroad_vidram2[tile_index] & 0x000001f)); int flipx = ((silkroad_vidram2[tile_index] & 0x0000080) >> 7); code += 0x18000; SET_TILE_INFO( 0, code, color, TILE_FLIPYX(flipx)) }
static void get_fg_tile_info(int tile_index) { unsigned char *base = memory_region(REGION_GFX5) + 0x20000 + 2*tile_index; int attr = base[0x10000]; int color = base[0]; int code = (base[0x10000+1]<<8) | base[1]; SET_TILE_INFO( 1, code, color, TILE_FLIPYX(attr & 3)) }
static TILE_GET_INFO( get_bg_tile_info ) { UINT8 *base = machine.region("gfx5")->base() + 2 * tile_index; int attr = base[0x10000]; int color = base[0]; int code = (base[0x10000 + 1] << 8) | base[1]; SET_TILE_INFO( 0, code, color, TILE_FLIPYX(attr & 3)); }
static TILE_GET_INFO( get_fg_tile_info ) { int code = (gomoku_videoram[tile_index]); int attr = (gomoku_colorram[tile_index]); int color = (attr& 0x0f); int flipyx = (attr & 0xc0) >> 6; SET_TILE_INFO( 0, code, color, TILE_FLIPYX(flipyx)); }
static TILE_GET_INFO( get_fg2_tile_info ) { silkroad_state *state = machine.driver_data<silkroad_state>(); int code = ((state->m_vidram2[tile_index] & 0xffff0000) >> 16 ); int color = ((state->m_vidram2[tile_index] & 0x000001f)); int flipx = ((state->m_vidram2[tile_index] & 0x0000080) >> 7); code += 0x18000; SET_TILE_INFO( 0, code, color, TILE_FLIPYX(flipx)); }
static TILE_GET_INFO( ninjakd2_get_bg_tile_info ) { int const lo = ninjakd2_bg_videoram[(tile_index << 1)]; int const hi = ninjakd2_bg_videoram[(tile_index << 1) | 1]; int const tile = ((hi & 0xc0) << 2) | lo; int const flipyx = (hi & 0x30) >> 4; int const color = hi & 0x0f; SET_TILE_INFO( 2, tile, color, TILE_FLIPYX(flipyx)); }
static TILE_GET_INFO( get_shadfrce_bg0tile_info ) { /* ---- ---- ---- cccc --TT TTTT TTTT TTTT */ shadfrce_state *state = machine->driver_data<shadfrce_state>(); int tileno, colour,fyx; tileno = (state->bg0videoram[tile_index *2+1] & 0x3fff); colour = state->bg0videoram[tile_index *2] & 0x001f; if (colour & 0x10) colour ^= 0x30; /* skip hole */ fyx = (state->bg0videoram[tile_index *2] & 0x00c0) >>6; SET_TILE_INFO(2,tileno,colour,TILE_FLIPYX(fyx)); }
static TILE_GET_INFO( ninjakd2_get_bg_tile_info ) { ninjakd2_state *state = machine.driver_data<ninjakd2_state>(); int const lo = state->m_bg_videoram[(tile_index << 1)]; int const hi = state->m_bg_videoram[(tile_index << 1) | 1]; int const tile = ((hi & 0xc0) << 2) | lo; int const flipyx = (hi & 0x30) >> 4; int const color = hi & 0x0f; SET_TILE_INFO( 2, tile, color, TILE_FLIPYX(flipyx)); }
GFXDECODE_END TILE_GET_INFO_MEMBER(dmndrby_state::get_dmndrby_tile_info) { int code = m_racetrack_tilemap_rom[tile_index]; int attr = m_racetrack_tilemap_rom[tile_index+0x2000]; int col = attr&0x1f; int flipx = (attr&0x40)>>6; SET_TILE_INFO_MEMBER(2, code, col, TILE_FLIPYX(flipx) ); }
static void get_mugsmash_tile_info2(int tile_index) { /* fF-- cccc nnnn nnnn */ /* c = colour? n = number? F = flip-X f = flip-Y */ int tileno,colour,fx; tileno = mugsmash_videoram2[tile_index *2 +1]; colour = mugsmash_videoram2[tile_index *2] & 0x000f; fx = (mugsmash_videoram2[tile_index *2] & 0xc0) >>6; SET_TILE_INFO(1,tileno,16+colour,TILE_FLIPYX(fx)) }
static TILE_GET_INFO( get_mugsmash_tile_info2 ) { /* fF-- cccc nnnn nnnn */ /* c = colour? n = number? F = flip-X f = flip-Y */ mugsmash_state *state = machine.driver_data<mugsmash_state>(); int tileno, colour, fx; tileno = state->m_videoram2[tile_index * 2 + 1]; colour = state->m_videoram2[tile_index * 2] & 0x000f; fx = (state->m_videoram2[tile_index * 2] & 0xc0) >> 6; SET_TILE_INFO(1, tileno, 16 + colour, TILE_FLIPYX(fx)); }
static TILE_GET_INFO( get_tile_info ) { skylncr_state *state = machine.driver_data<skylncr_state>(); UINT16 code = state->m_videoram[ tile_index ] + (state->m_colorram[ tile_index ] << 8); SET_TILE_INFO(0, code, 0, TILE_FLIPYX( 0 )); }
static TILE_GET_INFO( get_reel_4_tile_info ) { skylncr_state *state = machine.driver_data<skylncr_state>(); UINT16 code = state->m_reeltiles_4_ram[ tile_index ] + (state->m_reeltileshigh_4_ram[ tile_index ] << 8); SET_TILE_INFO(1, code, 0, TILE_FLIPYX( 0 )); }
static TILE_GET_INFO( get_tile_info ) { UINT16 code = videoram[ tile_index ] + (colorram[ tile_index ] << 8) ; SET_TILE_INFO(1, code & 0x1ff, 0, TILE_FLIPYX( 0 ));; }