Exemplo n.º 1
0
GFXDECODE_END

TILE_GET_INFO_MEMBER( blockade_state::tile_info )
{
	int code = m_videoram[tile_index];
	SET_TILE_INFO_MEMBER(0, code, 0, 0);
}
Exemplo n.º 2
0
inline void namcos2_shared_state::namcoic_get_tile_info(tile_data &tileinfo,int tile_index,UINT16 *vram)
{
	int tile, mask;
	mTilemapInfo.cb( machine(), vram[tile_index], &tile, &mask );
	tileinfo.mask_data = mTilemapInfo.maskBaseAddr+mask*8;
	SET_TILE_INFO_MEMBER(mTilemapInfo.gfxbank,tile,0,0);
} /* get_tile_info */
Exemplo n.º 3
0
inline void fromanc2_state::fromanc2_get_tile_info( tile_data &tileinfo, int tile_index, int vram, int layer )
{
	int tile  = (m_videoram[vram][layer][tile_index] & 0x3fff) | (m_gfxbank[vram][layer] << 14);
	int color = (m_videoram[vram][layer][tile_index] & 0xc000) >> 14;

	SET_TILE_INFO_MEMBER(layer, tile, color, 0);
}
Exemplo n.º 4
0
INPUT_PORTS_END


TILE_GET_INFO_MEMBER(clpoker_state::get_bg_tile_info)
{
	u16 tileno = (m_videoram[tile_index] << 8) | m_videoram[tile_index + 0x0800];
	SET_TILE_INFO_MEMBER(0, tileno, 0, 0);
}
Exemplo n.º 5
0
inline void hexion_state::get_tile_info(tile_data &tileinfo,int tile_index,UINT8 *ram)
{
	tile_index *= 4;
	SET_TILE_INFO_MEMBER(0,
			ram[tile_index] + ((ram[tile_index+1] & 0x3f) << 8),
			ram[tile_index+2] & 0x0f,
			0);
}
Exemplo n.º 6
0
inline void fromance_state::get_nekkyoku_tile_info( tile_data &tileinfo, int tile_index, int layer )
{
	int tile = (m_local_videoram[layer][0x0000 + tile_index] << 8) |
				m_local_videoram[layer][0x1000 + tile_index];
	int color = m_local_videoram[layer][tile_index + 0x2000] & 0x3f;

	SET_TILE_INFO_MEMBER(layer, tile, color, 0);
}
Exemplo n.º 7
0
inline void namcos1_state::get_tile_info(tile_data &tileinfo,int tile_index,UINT8 *info_vram)
{
	int code;

	tile_index <<= 1;
	code = info_vram[tile_index + 1] + ((info_vram[tile_index] & 0x3f) << 8);
	SET_TILE_INFO_MEMBER(0,code,0,0);
	tileinfo.mask_data = &m_tilemap_maskdata[code << 3];
}
Exemplo n.º 8
0
INPUT_PORTS_END


TILE_GET_INFO_MEMBER(pkscram_state::get_bg_tile_info)
{
	int tile  = m_pkscramble_bgtilemap_ram[tile_index*2];
	int color = m_pkscramble_bgtilemap_ram[tile_index*2 + 1] & 0x7f;

	SET_TILE_INFO_MEMBER(0,tile,color,0);
}
Exemplo n.º 9
0
GFXDECODE_END

/****************************
* Video/Character functions *
****************************/

TILE_GET_INFO_MEMBER(i7000_state::get_bg_tile_info)
{
	SET_TILE_INFO_MEMBER(0, /*code:*/ m_videoram[tile_index], /*color:*/ 0, 0);
}
Exemplo n.º 10
0
void atarifb_state::get_tile_info_common( tile_data &tileinfo, tilemap_memory_index tile_index, UINT8 *alpha_videoram )
{
	int code = alpha_videoram[tile_index] & 0x3f;
	int flip = alpha_videoram[tile_index] & 0x40;
	int disable = alpha_videoram[tile_index] & 0x80;

	if (disable)
		code = 0;   /* I *know* this is a space */

	SET_TILE_INFO_MEMBER(0, code, 0, (flip ? TILE_FLIPX | TILE_FLIPY : 0));
}
Exemplo n.º 11
0
GFXDECODE_END

void ettrivia_state::get_tile_info(tile_data &tileinfo, int tile_index, uint8_t *vidram, int gfx_code)
{
	int code = vidram[tile_index];
	int color = (code >> 5) + 8 * m_palreg;

	code += m_gfx_bank * 0x100;

	SET_TILE_INFO_MEMBER(gfx_code,code,color,0);
}
Exemplo n.º 12
0
void ninjakd2_state::robokid_get_bg_tile_info( tile_data& tileinfo, tilemap_memory_index const tile_index, int const gfxnum, const UINT8* const videoram)
{
	int const lo = videoram[(tile_index << 1)];
	int const hi = videoram[(tile_index << 1) | 1];
	int const tile = ((hi & 0x10) << 7) | ((hi & 0x20) << 5) | ((hi & 0xc0) << 2) | lo;
	int const color = hi & 0x0f;

	SET_TILE_INFO_MEMBER(gfxnum,
			tile,
			color,
			0);
}
Exemplo n.º 13
0
/* call with tilesize = 0 for 8x8 or 1 for 16x16 */
void rabbit_state::get_tilemap_info(tile_data &tileinfo, int tile_index, int whichtilemap, int tilesize)
{
    /* fedcba98 76543210 fedcba98 76543210
       x                                    color mask? how exactly does it relate to color bits?
        xx                                  flip
          x                                 depth
           xxxx xxxx                        color
                    xxxx                    bank
                         xxxxxxxx xxxxxxxx  tile
    */
    int depth = (m_tilemap_ram[whichtilemap][tile_index]&0x10000000)>>28;
    int tileno = m_tilemap_ram[whichtilemap][tile_index]&0xffff;
    int bank = (m_tilemap_ram[whichtilemap][tile_index]&0x000f0000)>>16;
    int colour = (m_tilemap_ram[whichtilemap][tile_index]>>20)&0xff;
    int cmask = m_tilemap_ram[whichtilemap][tile_index]>>31&1;
    int flipxy = (m_tilemap_ram[whichtilemap][tile_index]>>29)&3;

    if (m_banking)
    {
        switch (bank)
        {
        case 0x0:
            break;

        case 0x8:
            tileno += 0x10000;
            break;

        case 0xc:
            tileno += 0x20000;
            break;

        default:
            //printf("tilebank %x\n",bank);
            break;
        }
    }
    else
    {
        tileno += (bank << 16);
    }

    if (depth)
    {
        tileno >>=(1+tilesize*2);
        colour &= 0x0f;
        colour += 0x20;
        tileinfo.group = 1;
        SET_TILE_INFO_MEMBER(6+tilesize,tileno,colour,TILE_FLIPXY(flipxy));
    }
    else
    {
Exemplo n.º 14
0
void k051316_device::get_tile_info( tile_data &tileinfo, int tile_index )
{
	int code = m_ram[tile_index];
	int color = m_ram[tile_index + 0x400];
	int flags = 0;

	m_callback(machine(), &code, &color, &flags);

	SET_TILE_INFO_MEMBER(m_gfx_num,
			code,
			color,
			flags);
}
Exemplo n.º 15
0
GFXDECODE_END


TILE_GET_INFO_MEMBER(coinmstr_state::get_bg_tile_info)
{
	UINT8 *videoram = m_videoram;
	int tile = videoram[tile_index + 0x0240];
	int color = tile_index;

	tile |= (m_attr_ram1[tile_index + 0x0240] & 0x80) << 1;
	tile |= (m_attr_ram2[tile_index + 0x0240] & 0x80) << 2;

	tile |= (m_attr_ram3[tile_index + 0x0240] & 0x03) << (6+4);

	SET_TILE_INFO_MEMBER(0, tile, color, 0);
}
Exemplo n.º 16
0
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) );
}
Exemplo n.º 17
0
void k007342_device::get_tile_info( tile_data &tileinfo, int tile_index, int layer, UINT8 *cram, UINT8 *vram )
{
	int color, code, flags;

	color = cram[tile_index];
	code = vram[tile_index];
	flags = TILE_FLIPYX((color & 0x30) >> 4);

	tileinfo.category = (color & 0x80) >> 7;

	m_callback(machine(), layer, m_regs[1], &code, &color, &flags);

	SET_TILE_INFO_MEMBER(
			m_gfxnum,
			code,
			color,
			flags);
}
Exemplo n.º 18
0
GFXDECODE_END

TILE_GET_INFO_MEMBER(trvmadns_state::get_bg_tile_info)
{
	int tile,attr,color,flag;

	attr = m_tileram[tile_index*2 + 0];
	tile = m_tileram[tile_index*2 + 1] + ((attr & 0x01) << 8);
	color = (attr & 0x18) >> 3;
	flag = TILE_FLIPXY((attr & 0x06) >> 1);

//  if((~attr & 0x20) || (~attr & 0x40))
//      flag |= TILE_FORCE_LAYER0;

	//0x20? tile transparent pen 1?
	//0x40? tile transparent pen 1?

	SET_TILE_INFO_MEMBER(0,tile,color,flag);

	tileinfo.category = (attr & 0x20)>>5;
}
Exemplo n.º 19
0
inline void fromanc2_state::fromancr_get_tile_info( tile_data &tileinfo, int tile_index, int vram, int layer )
{
	int tile = m_videoram[vram][layer][tile_index] | (m_gfxbank[vram][layer] << 16);

	SET_TILE_INFO_MEMBER(layer, tile, 0, 0);
}