mirror of
https://github.com/holub/mame
synced 2025-07-05 09:57:47 +03:00
tilemap: that macro has contributed nothing but obfuscation since we moved to C++
This commit is contained in:
parent
e7b33bd5e2
commit
9733f5cf3d
@ -134,7 +134,7 @@ TILE_GET_INFO_MEMBER(tc0091lvc_device::get_tile_info)
|
||||
| ((m_vregs[(attr & 0xc) >> 2]) << 10);
|
||||
// | (state->m_horshoes_gfxbank << 12);
|
||||
|
||||
SET_TILE_INFO_MEMBER(0,
|
||||
tileinfo.set(0,
|
||||
code,
|
||||
(attr & 0xf0) >> 4,
|
||||
0);
|
||||
@ -146,7 +146,7 @@ TILE_GET_INFO_MEMBER(tc0091lvc_device::get_tx_tile_info)
|
||||
const u16 code = m_vram[0xa000 + (2 * tile_index)]
|
||||
| ((attr & 0x07) << 8);
|
||||
|
||||
SET_TILE_INFO_MEMBER(2,
|
||||
tileinfo.set(2,
|
||||
code,
|
||||
(attr & 0xf0) >> 4,
|
||||
0);
|
||||
|
@ -793,14 +793,11 @@ private:
|
||||
// function definition for a logical-to-memory mapper
|
||||
#define TILEMAP_MAPPER_MEMBER(_name) tilemap_memory_index _name(u32 col, u32 row, u32 num_cols, u32 num_rows)
|
||||
|
||||
// useful macro inside of a TILE_GET_INFO callback to set tile information
|
||||
#define SET_TILE_INFO_MEMBER(GFX,CODE,COLOR,FLAGS) tileinfo.set(GFX, CODE, COLOR, FLAGS)
|
||||
|
||||
// Macros for setting tile attributes in the TILE_GET_INFO callback:
|
||||
// Helpers for setting tile attributes in the TILE_GET_INFO callback:
|
||||
// TILE_FLIP_YX assumes that flipy is in bit 1 and flipx is in bit 0
|
||||
// TILE_FLIP_XY assumes that flipy is in bit 0 and flipx is in bit 1
|
||||
#define TILE_FLIPYX(YX) ((YX) & 3)
|
||||
#define TILE_FLIPXY(XY) ((((XY) & 2) >> 1) | (((XY) & 1) << 1))
|
||||
template <typename T> constexpr u8 TILE_FLIPYX(T yx) { return u8(yx & 3); }
|
||||
template <typename T> constexpr u8 TILE_FLIPXY(T xy) { return u8(((xy & 2) >> 1) | ((xy & 1) << 1)); }
|
||||
|
||||
|
||||
|
||||
|
@ -167,7 +167,7 @@ private:
|
||||
TILE_GET_INFO_MEMBER(k3_state::get_tile_info)
|
||||
{
|
||||
int tileno = m_bgram_buffer[tile_index];
|
||||
SET_TILE_INFO_MEMBER(1, tileno, 0, 0);
|
||||
tileinfo.set(1, tileno, 0, 0);
|
||||
}
|
||||
|
||||
void k3_state::video_start()
|
||||
|
@ -113,7 +113,7 @@ private:
|
||||
TILE_GET_INFO_MEMBER(_3x3puzzle_state::get_tile1_info)
|
||||
{
|
||||
uint16_t code = m_videoram1_buffer[tile_index];
|
||||
SET_TILE_INFO_MEMBER(0,
|
||||
tileinfo.set(0,
|
||||
code,
|
||||
0,
|
||||
0);
|
||||
@ -122,7 +122,7 @@ TILE_GET_INFO_MEMBER(_3x3puzzle_state::get_tile1_info)
|
||||
TILE_GET_INFO_MEMBER(_3x3puzzle_state::get_tile2_info)
|
||||
{
|
||||
uint16_t code = m_videoram2_buffer[tile_index];
|
||||
SET_TILE_INFO_MEMBER(1,
|
||||
tileinfo.set(1,
|
||||
code,
|
||||
1,
|
||||
0);
|
||||
@ -131,7 +131,7 @@ TILE_GET_INFO_MEMBER(_3x3puzzle_state::get_tile2_info)
|
||||
TILE_GET_INFO_MEMBER(_3x3puzzle_state::get_tile3_info)
|
||||
{
|
||||
uint16_t code = m_videoram3_buffer[tile_index];
|
||||
SET_TILE_INFO_MEMBER(2,
|
||||
tileinfo.set(2,
|
||||
code,
|
||||
2,
|
||||
0);
|
||||
|
@ -157,7 +157,7 @@ TILE_GET_INFO_MEMBER(akkaarrh_state::get_tile_info)
|
||||
{
|
||||
int data = m_videoram[tile_index];
|
||||
int data2 = m_videoram[tile_index + 0x400];
|
||||
SET_TILE_INFO_MEMBER(0, data, data2 & 0xf, TILE_FLIPYX(data2 >> 6));
|
||||
tileinfo.set(0, data, data2 & 0xf, TILE_FLIPYX(data2 >> 6));
|
||||
}
|
||||
|
||||
WRITE8_MEMBER(akkaarrh_state::videoram_w)
|
||||
|
@ -103,7 +103,7 @@ TILE_GET_INFO_MEMBER(albazg_state::y_get_bg_tile_info)
|
||||
int code = m_videoram[tile_index];
|
||||
int color = m_colorram[tile_index];
|
||||
|
||||
SET_TILE_INFO_MEMBER(0,
|
||||
tileinfo.set(0,
|
||||
code + ((color & 0xf8) << 3),
|
||||
color & 0x7,
|
||||
0);
|
||||
|
@ -638,7 +638,7 @@ TILE_GET_INFO_MEMBER( ambush_state::ambush_char_tile_info )
|
||||
int color = (m_color_bank << 4) | (attr & 0x0f);
|
||||
tileinfo.category = BIT(attr, 4);
|
||||
|
||||
SET_TILE_INFO_MEMBER(0, code, color, 0);
|
||||
tileinfo.set(0, code, color, 0);
|
||||
}
|
||||
|
||||
TILE_GET_INFO_MEMBER( ambush_state::mariobl_char_tile_info )
|
||||
@ -650,7 +650,7 @@ TILE_GET_INFO_MEMBER( ambush_state::mariobl_char_tile_info )
|
||||
int code = ((attr & 0x40) << 2) | m_video_ram[tile_index];
|
||||
int color = ((attr & 0x40) >> 2) | 8 | (m_video_ram[tile_index] >> 5);
|
||||
|
||||
SET_TILE_INFO_MEMBER(0, code, color, 0);
|
||||
tileinfo.set(0, code, color, 0);
|
||||
}
|
||||
|
||||
TILE_GET_INFO_MEMBER( ambush_state::dkong3abl_char_tile_info )
|
||||
@ -663,7 +663,7 @@ TILE_GET_INFO_MEMBER( ambush_state::dkong3abl_char_tile_info )
|
||||
int code = ((attr & 0x40) << 2) | m_video_ram[tile_index];
|
||||
int color = (BIT(attr, 6) << 5) | (BIT(attr, 6) << 4) | (attr & 0x07);
|
||||
|
||||
SET_TILE_INFO_MEMBER(0, code, color, 0);
|
||||
tileinfo.set(0, code, color, 0);
|
||||
}
|
||||
|
||||
|
||||
|
@ -181,7 +181,7 @@ TILE_GET_INFO_MEMBER(amusco_state::get_bg_tile_info)
|
||||
if (BIT(code, 15) && !m_blink_state)
|
||||
code = 0;
|
||||
|
||||
SET_TILE_INFO_MEMBER(
|
||||
tileinfo.set(
|
||||
0 /* bank */,
|
||||
code & 0x3ff,
|
||||
color,
|
||||
|
@ -531,7 +531,7 @@ TILE_GET_INFO_MEMBER(avt_state::get_bg_tile_info)
|
||||
int code = m_videoram[tile_index] | ((attr & 1) << 8);
|
||||
int color = (attr & 0xf0)>>4;
|
||||
|
||||
SET_TILE_INFO_MEMBER(0, code, color, 0);
|
||||
tileinfo.set(0, code, color, 0);
|
||||
}
|
||||
|
||||
|
||||
|
@ -88,7 +88,7 @@ TILE_GET_INFO_MEMBER(bestleag_state::get_tx_tile_info)
|
||||
{
|
||||
int code = m_txram[tile_index];
|
||||
|
||||
SET_TILE_INFO_MEMBER(0,
|
||||
tileinfo.set(0,
|
||||
(code & 0x0fff)|0x8000,
|
||||
(code & 0xf000) >> 12,
|
||||
0);
|
||||
@ -98,7 +98,7 @@ TILE_GET_INFO_MEMBER(bestleag_state::get_bg_tile_info)
|
||||
{
|
||||
int code = m_bgram[tile_index];
|
||||
|
||||
SET_TILE_INFO_MEMBER(1,
|
||||
tileinfo.set(1,
|
||||
(code & 0x0fff),
|
||||
(code & 0xf000) >> 12,
|
||||
0);
|
||||
@ -108,7 +108,7 @@ TILE_GET_INFO_MEMBER(bestleag_state::get_fg_tile_info)
|
||||
{
|
||||
int code = m_fgram[tile_index];
|
||||
|
||||
SET_TILE_INFO_MEMBER(1,
|
||||
tileinfo.set(1,
|
||||
(code & 0x0fff)|0x1000,
|
||||
((code & 0xf000) >> 12)|0x10,
|
||||
0);
|
||||
|
@ -455,7 +455,7 @@ TILE_GET_INFO_MEMBER(bionicc_state::get_tx_tile_info)
|
||||
int attr = m_txvideoram[tile_index + 0x400];
|
||||
int code = m_txvideoram[tile_index] & 0xff;
|
||||
|
||||
SET_TILE_INFO_MEMBER(0, ((attr & 0xc0) << 2) | code, attr & 0x3f, 0);
|
||||
tileinfo.set(0, ((attr & 0xc0) << 2) | code, attr & 0x3f, 0);
|
||||
}
|
||||
|
||||
TILE_GET_INFO_MEMBER(bionicc_state::get_fg_tile_info)
|
||||
@ -483,7 +483,7 @@ TILE_GET_INFO_MEMBER(bionicc_state::get_fg_tile_info)
|
||||
flag = TILE_FLIPXY((attr & 0xc0) >> 6);
|
||||
}
|
||||
|
||||
SET_TILE_INFO_MEMBER(2, ((attr & 0x07) << 8) | code, (attr & 0x18) >> 3, flag);
|
||||
tileinfo.set(2, ((attr & 0x07) << 8) | code, (attr & 0x18) >> 3, flag);
|
||||
}
|
||||
|
||||
TILE_GET_INFO_MEMBER(bionicc_state::get_bg_tile_info)
|
||||
@ -497,7 +497,7 @@ TILE_GET_INFO_MEMBER(bionicc_state::get_bg_tile_info)
|
||||
int code = m_bgvideoram[2 * tile_index] & 0xff;
|
||||
int flag = TILE_FLIPXY((attr & 0xc0) >> 6);
|
||||
|
||||
SET_TILE_INFO_MEMBER(1, ((attr & 0x07) << 8) | code, (attr & 0x38) >> 3, flag);
|
||||
tileinfo.set(1, ((attr & 0x07) << 8) | code, (attr & 0x38) >> 3, flag);
|
||||
}
|
||||
|
||||
|
||||
|
@ -162,7 +162,7 @@ TILE_GET_INFO_MEMBER(blackt96_state::get_tx_tile_info)
|
||||
uint8_t color = m_tilemapram[tile_index*2+1] & 0x0f;
|
||||
tile += m_txt_bank * 0x100;
|
||||
|
||||
SET_TILE_INFO_MEMBER(2,
|
||||
tileinfo.set(2,
|
||||
tile,
|
||||
color,
|
||||
0);
|
||||
|
@ -377,7 +377,7 @@ GFXDECODE_END
|
||||
TILE_GET_INFO_MEMBER( blockade_state::tile_info )
|
||||
{
|
||||
int code = m_videoram[tile_index];
|
||||
SET_TILE_INFO_MEMBER(0, code, 0, 0);
|
||||
tileinfo.set(0, code, 0, 0);
|
||||
}
|
||||
|
||||
|
||||
|
@ -121,7 +121,7 @@ template<unsigned N>
|
||||
TILE_GET_INFO_MEMBER(bmcpokr_state::get_tile_info)
|
||||
{
|
||||
uint16_t data = m_videoram[N][tile_index];
|
||||
SET_TILE_INFO_MEMBER(0, data, 0, (data & 0x8000) ? TILE_FLIPX : 0);
|
||||
tileinfo.set(0, data, 0, (data & 0x8000) ? TILE_FLIPX : 0);
|
||||
}
|
||||
|
||||
void bmcpokr_state::video_start()
|
||||
|
@ -181,7 +181,7 @@ TILE_GET_INFO_MEMBER(bnstars_state::get_ms32_tx0_tile_info)
|
||||
tileno = m_ms32_tx0_ram[tile_index *2+0] & 0x0000ffff;
|
||||
colour = m_ms32_tx0_ram[tile_index *2+1] & 0x0000000f;
|
||||
|
||||
SET_TILE_INFO_MEMBER(2,tileno,colour,0);
|
||||
tileinfo.set(2,tileno,colour,0);
|
||||
}
|
||||
|
||||
TILE_GET_INFO_MEMBER(bnstars_state::get_ms32_tx1_tile_info)
|
||||
@ -191,7 +191,7 @@ TILE_GET_INFO_MEMBER(bnstars_state::get_ms32_tx1_tile_info)
|
||||
tileno = m_ms32_tx1_ram[tile_index *2+0] & 0x0000ffff;
|
||||
colour = m_ms32_tx1_ram[tile_index *2+1] & 0x0000000f;
|
||||
|
||||
SET_TILE_INFO_MEMBER(5,tileno,colour,0);
|
||||
tileinfo.set(5,tileno,colour,0);
|
||||
}
|
||||
|
||||
WRITE16_MEMBER(bnstars_state::ms32_tx0_ram_w)
|
||||
@ -215,7 +215,7 @@ TILE_GET_INFO_MEMBER(bnstars_state::get_ms32_bg0_tile_info)
|
||||
tileno = m_ms32_bg0_ram[tile_index *2+0] & 0x0000ffff;
|
||||
colour = m_ms32_bg0_ram[tile_index *2+1] & 0x0000000f;
|
||||
|
||||
SET_TILE_INFO_MEMBER(1,tileno,colour,0);
|
||||
tileinfo.set(1,tileno,colour,0);
|
||||
}
|
||||
|
||||
TILE_GET_INFO_MEMBER(bnstars_state::get_ms32_bg1_tile_info)
|
||||
@ -225,7 +225,7 @@ TILE_GET_INFO_MEMBER(bnstars_state::get_ms32_bg1_tile_info)
|
||||
tileno = m_ms32_bg1_ram[tile_index *2+0] & 0x0000ffff;
|
||||
colour = m_ms32_bg1_ram[tile_index *2+1] & 0x0000000f;
|
||||
|
||||
SET_TILE_INFO_MEMBER(4,tileno,colour,0);
|
||||
tileinfo.set(4,tileno,colour,0);
|
||||
}
|
||||
|
||||
WRITE16_MEMBER(bnstars_state::ms32_bg0_ram_w)
|
||||
@ -334,7 +334,7 @@ TILE_GET_INFO_MEMBER(bnstars_state::get_ms32_roz0_tile_info)
|
||||
tileno = m_ms32_roz0_ram[tile_index *2+0] & 0x0000ffff;
|
||||
colour = m_ms32_roz0_ram[tile_index *2+1] & 0x0000000f;
|
||||
|
||||
SET_TILE_INFO_MEMBER(0,tileno,colour,0);
|
||||
tileinfo.set(0,tileno,colour,0);
|
||||
}
|
||||
|
||||
TILE_GET_INFO_MEMBER(bnstars_state::get_ms32_roz1_tile_info)
|
||||
@ -344,7 +344,7 @@ TILE_GET_INFO_MEMBER(bnstars_state::get_ms32_roz1_tile_info)
|
||||
tileno = m_ms32_roz1_ram[tile_index *2+0] & 0x0000ffff;
|
||||
colour = m_ms32_roz1_ram[tile_index *2+1] & 0x0000000f;
|
||||
|
||||
SET_TILE_INFO_MEMBER(3,tileno,colour,0);
|
||||
tileinfo.set(3,tileno,colour,0);
|
||||
}
|
||||
|
||||
WRITE16_MEMBER(bnstars_state::ms32_roz0_ram_w)
|
||||
|
@ -108,14 +108,14 @@ WRITE8_MEMBER(cabaret_state::bg_tile_w)
|
||||
TILE_GET_INFO_MEMBER(cabaret_state::get_bg_tile_info)
|
||||
{
|
||||
int code = m_bg_tile_ram[tile_index];
|
||||
SET_TILE_INFO_MEMBER(1, code & 0xff, 0, 0);
|
||||
tileinfo.set(1, code & 0xff, 0, 0);
|
||||
}
|
||||
|
||||
TILE_GET_INFO_MEMBER(cabaret_state::get_fg_tile_info)
|
||||
{
|
||||
int code = m_fg_tile_ram[tile_index] | (m_fg_color_ram[tile_index] << 8);
|
||||
int tile = code & 0x1fff;
|
||||
SET_TILE_INFO_MEMBER(0, code, tile != 0x1fff ? ((code >> 12) & 0xe) + 1 : 0, 0);
|
||||
tileinfo.set(0, code, tile != 0x1fff ? ((code >> 12) & 0xe) + 1 : 0, 0);
|
||||
}
|
||||
|
||||
WRITE8_MEMBER(cabaret_state::fg_tile_w)
|
||||
|
@ -152,7 +152,7 @@ TILE_GET_INFO_MEMBER(calorie_state::get_bg_tile_info)
|
||||
int color = src[bg_base + tile_index + 0x100] & 0x0f;
|
||||
int flag = src[bg_base + tile_index + 0x100] & 0x40 ? TILE_FLIPX : 0;
|
||||
|
||||
SET_TILE_INFO_MEMBER(1, code, color, flag);
|
||||
tileinfo.set(1, code, color, flag);
|
||||
}
|
||||
|
||||
TILE_GET_INFO_MEMBER(calorie_state::get_fg_tile_info)
|
||||
@ -160,7 +160,7 @@ TILE_GET_INFO_MEMBER(calorie_state::get_fg_tile_info)
|
||||
int code = ((m_fg_ram[tile_index + 0x400] & 0x30) << 4) | m_fg_ram[tile_index];
|
||||
int color = m_fg_ram[tile_index + 0x400] & 0x0f;
|
||||
|
||||
SET_TILE_INFO_MEMBER(0, code, color, TILE_FLIPYX((m_fg_ram[tile_index + 0x400] & 0xc0) >> 6));
|
||||
tileinfo.set(0, code, color, TILE_FLIPYX((m_fg_ram[tile_index + 0x400] & 0xc0) >> 6));
|
||||
}
|
||||
|
||||
|
||||
|
@ -164,7 +164,7 @@ TILE_GET_INFO_MEMBER(carjmbre_state::get_tile_info)
|
||||
{
|
||||
int attr = m_videoram[tile_index | 0x400];
|
||||
int code = (m_videoram[tile_index] & 0xff) | (attr << 1 & 0x100);
|
||||
SET_TILE_INFO_MEMBER(0, code, attr & 0xf, 0);
|
||||
tileinfo.set(0, code, attr & 0xf, 0);
|
||||
}
|
||||
|
||||
void carjmbre_state::video_start()
|
||||
|
@ -123,7 +123,7 @@ TILE_GET_INFO_MEMBER(caswin_state::get_sc0_tile_info)
|
||||
int tile = (m_sc0_vram[tile_index] | ((m_sc0_attr[tile_index] & 0x70)<<4)) & 0x7ff;
|
||||
int colour = m_sc0_attr[tile_index] & 0xf;
|
||||
|
||||
SET_TILE_INFO_MEMBER(0,
|
||||
tileinfo.set(0,
|
||||
tile,
|
||||
colour,
|
||||
0);
|
||||
|
@ -496,7 +496,7 @@ TILE_GET_INFO_MEMBER(cb2001_state::get_cb2001_reel1_tile_info)
|
||||
|
||||
int colour = 0;//= (cb2001_out_c&0x7) + 8;
|
||||
|
||||
SET_TILE_INFO_MEMBER(1,
|
||||
tileinfo.set(1,
|
||||
code+0x800,
|
||||
colour,
|
||||
0);
|
||||
@ -513,7 +513,7 @@ TILE_GET_INFO_MEMBER(cb2001_state::get_cb2001_reel2_tile_info)
|
||||
|
||||
int colour = 0;//(cb2001_out_c&0x7) + 8;
|
||||
|
||||
SET_TILE_INFO_MEMBER(1,
|
||||
tileinfo.set(1,
|
||||
code+0x800,
|
||||
colour,
|
||||
0);
|
||||
@ -530,7 +530,7 @@ TILE_GET_INFO_MEMBER(cb2001_state::get_cb2001_reel3_tile_info)
|
||||
|
||||
code &=0xff;
|
||||
|
||||
SET_TILE_INFO_MEMBER(1,
|
||||
tileinfo.set(1,
|
||||
code+0x800,
|
||||
colour,
|
||||
0);
|
||||
|
@ -69,7 +69,7 @@ TILE_GET_INFO_MEMBER(cball_state::get_tile_info)
|
||||
{
|
||||
uint8_t code = m_video_ram[tile_index];
|
||||
|
||||
SET_TILE_INFO_MEMBER(0, code, code >> 7, 0);
|
||||
tileinfo.set(0, code, code >> 7, 0);
|
||||
}
|
||||
|
||||
|
||||
|
@ -162,7 +162,7 @@ TILE_GET_INFO_MEMBER(chanbara_state::get_bg_tile_info)
|
||||
int color = (m_colorram[tile_index] >> 1) & 0x1f;
|
||||
//int flipy = (m_colorram[tile_index]) & 0x01; // not on this layer (although bit is used)
|
||||
|
||||
SET_TILE_INFO_MEMBER(0, code, color, 0);
|
||||
tileinfo.set(0, code, color, 0);
|
||||
}
|
||||
|
||||
TILE_GET_INFO_MEMBER(chanbara_state::get_bg2_tile_info)
|
||||
@ -171,7 +171,7 @@ TILE_GET_INFO_MEMBER(chanbara_state::get_bg2_tile_info)
|
||||
int color = (m_colorram2[tile_index] >> 1) & 0x1f;
|
||||
int flipy = (m_colorram2[tile_index]) & 0x01;
|
||||
|
||||
SET_TILE_INFO_MEMBER(2, code, color, TILE_FLIPXY(flipy));
|
||||
tileinfo.set(2, code, color, TILE_FLIPXY(flipy));
|
||||
}
|
||||
|
||||
void chanbara_state::video_start()
|
||||
|
@ -89,7 +89,7 @@ TILE_GET_INFO_MEMBER(chance32_state::get_fg_tile_info)
|
||||
{
|
||||
int code = (m_fgram[tile_index * 2 + 1] << 8) | m_fgram[tile_index * 2];
|
||||
int flip = (~code >> 12)&1;
|
||||
SET_TILE_INFO_MEMBER(1,
|
||||
tileinfo.set(1,
|
||||
code & 0x0fff,
|
||||
code >> 13,
|
||||
TILE_FLIPYX(flip<<1)|flip);
|
||||
@ -99,7 +99,7 @@ TILE_GET_INFO_MEMBER(chance32_state::get_bg_tile_info)
|
||||
{
|
||||
int code = (m_bgram[tile_index * 2 +1] << 8) | m_bgram[tile_index * 2];
|
||||
int flip = (~code >> 12)&1;
|
||||
SET_TILE_INFO_MEMBER(0,
|
||||
tileinfo.set(0,
|
||||
code & 0x0fff,
|
||||
code >> 13,
|
||||
TILE_FLIPYX(flip<<1|flip));
|
||||
|
@ -392,7 +392,7 @@ TILE_GET_INFO_MEMBER( chinsan_state::tile_info )
|
||||
// -----210 unknown
|
||||
uint8_t color = m_color_ram[tile_index] >> 3;
|
||||
|
||||
SET_TILE_INFO_MEMBER(0, code, color, 0);
|
||||
tileinfo.set(0, code, color, 0);
|
||||
}
|
||||
|
||||
|
||||
|
@ -203,13 +203,13 @@ 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);
|
||||
tileinfo.set(0, tileno, 0, 0);
|
||||
}
|
||||
|
||||
TILE_GET_INFO_MEMBER(clpoker_state::get_fg_tile_info)
|
||||
{
|
||||
u16 tileno = (m_videoram[tile_index + 0x1000] << 8) | m_videoram[tile_index + 0x1800];
|
||||
SET_TILE_INFO_MEMBER(0, tileno, 0, 0);
|
||||
tileinfo.set(0, tileno, 0, 0);
|
||||
}
|
||||
|
||||
WRITE8_MEMBER(clpoker_state::videoram_w)
|
||||
|
@ -184,7 +184,7 @@ TILE_GET_INFO_MEMBER(cntsteer_state::get_bg_tile_info)
|
||||
{
|
||||
int code = m_videoram2[tile_index];
|
||||
|
||||
SET_TILE_INFO_MEMBER(2, code + m_bg_bank, m_bg_color_bank, 0);
|
||||
tileinfo.set(2, code + m_bg_bank, m_bg_color_bank, 0);
|
||||
}
|
||||
|
||||
TILE_GET_INFO_MEMBER(cntsteer_state::get_fg_tile_info)
|
||||
@ -194,7 +194,7 @@ TILE_GET_INFO_MEMBER(cntsteer_state::get_fg_tile_info)
|
||||
|
||||
code |= (attr & 0x01) << 8;
|
||||
|
||||
SET_TILE_INFO_MEMBER(0, code, 0x30 + ((attr & 0x78) >> 3), 0);
|
||||
tileinfo.set(0, code, 0x30 + ((attr & 0x78) >> 3), 0);
|
||||
}
|
||||
|
||||
VIDEO_START_MEMBER(cntsteer_state,cntsteer)
|
||||
|
@ -1241,7 +1241,7 @@ TILE_GET_INFO_MEMBER(coinmstr_state::get_bg_tile_info)
|
||||
|
||||
tile |= (m_attr_ram3[tile_index + 0x0240] & 0x03) << (6+4);
|
||||
|
||||
SET_TILE_INFO_MEMBER(0, tile, color, 0);
|
||||
tileinfo.set(0, tile, color, 0);
|
||||
}
|
||||
|
||||
void coinmstr_state::video_start()
|
||||
|
@ -93,7 +93,7 @@ TILE_GET_INFO_MEMBER(cswat_state::get_tile_info)
|
||||
int code = m_videoram[tile_index] | (attr << 8 & 0x300);
|
||||
int flags = TILE_FLIPYX(attr >> 2);
|
||||
|
||||
SET_TILE_INFO_MEMBER(0, code, color, flags);
|
||||
tileinfo.set(0, code, color, flags);
|
||||
}
|
||||
|
||||
void cswat_state::video_start()
|
||||
|
@ -92,19 +92,19 @@ public:
|
||||
TILE_GET_INFO_MEMBER(cultures_state::get_bg1_tile_info)
|
||||
{
|
||||
int const code = m_bg1_rom[0x200000/2 + m_bg1_bank * 0x80000/2 + tile_index];
|
||||
SET_TILE_INFO_MEMBER(1, code, code >> 12, 0);
|
||||
tileinfo.set(1, code, code >> 12, 0);
|
||||
}
|
||||
|
||||
TILE_GET_INFO_MEMBER(cultures_state::get_bg2_tile_info)
|
||||
{
|
||||
int const code = m_bg2_rom[0x200000/2 + m_bg2_bank * 0x80000/2 + tile_index];
|
||||
SET_TILE_INFO_MEMBER(2, code, code >> 12, 0);
|
||||
tileinfo.set(2, code, code >> 12, 0);
|
||||
}
|
||||
|
||||
TILE_GET_INFO_MEMBER(cultures_state::get_bg0_tile_info)
|
||||
{
|
||||
int const code = m_bg0_videoram[tile_index * 2] + (m_bg0_videoram[tile_index * 2 + 1] << 8);
|
||||
SET_TILE_INFO_MEMBER(0, code, code >> 12, 0);
|
||||
tileinfo.set(0, code, code >> 12, 0);
|
||||
}
|
||||
|
||||
void cultures_state::video_start()
|
||||
|
@ -267,7 +267,7 @@ TILE_GET_INFO_MEMBER(cybertnk_state::get_tile_info)
|
||||
int pal = (code & 0xe000) >> 13;
|
||||
pal |=(code & 0x1c00) >> 7;
|
||||
|
||||
SET_TILE_INFO_MEMBER(Layer,
|
||||
tileinfo.set(Layer,
|
||||
code & 0x1fff,
|
||||
pal,
|
||||
0);
|
||||
|
@ -82,7 +82,7 @@ TILE_GET_INFO_MEMBER(d9final_state::get_sc0_tile_info)
|
||||
int tile = ((m_hi_vram[tile_index] & 0x3f)<<8) | m_lo_vram[tile_index];
|
||||
int color = m_cram[tile_index] & 0x3f;
|
||||
|
||||
SET_TILE_INFO_MEMBER(0,
|
||||
tileinfo.set(0,
|
||||
tile,
|
||||
color,
|
||||
0);
|
||||
|
@ -128,12 +128,12 @@ private:
|
||||
|
||||
TILE_GET_INFO_MEMBER(dacholer_state::get_bg_tile_info)
|
||||
{
|
||||
SET_TILE_INFO_MEMBER(1, m_bgvideoram[tile_index] + m_bg_bank * 0x100, 0, 0);
|
||||
tileinfo.set(1, m_bgvideoram[tile_index] + m_bg_bank * 0x100, 0, 0);
|
||||
}
|
||||
|
||||
TILE_GET_INFO_MEMBER(dacholer_state::get_fg_tile_info)
|
||||
{
|
||||
SET_TILE_INFO_MEMBER(0, m_fgvideoram[tile_index], 0, 0);
|
||||
tileinfo.set(0, m_fgvideoram[tile_index], 0, 0);
|
||||
}
|
||||
|
||||
void dacholer_state::video_start()
|
||||
|
@ -163,14 +163,14 @@ TILE_GET_INFO_MEMBER(ddayjlc_state::get_tile_info_bg)
|
||||
color |= (attr & 0x40) >> 3;
|
||||
|
||||
tileinfo.category = BIT(attr,7);
|
||||
SET_TILE_INFO_MEMBER(2, code, color, 0);
|
||||
tileinfo.set(2, code, color, 0);
|
||||
}
|
||||
|
||||
TILE_GET_INFO_MEMBER(ddayjlc_state::get_tile_info_fg)
|
||||
{
|
||||
int code = m_videoram[tile_index] + (m_char_bank << 8);
|
||||
|
||||
SET_TILE_INFO_MEMBER(1, code, 0, 0);
|
||||
tileinfo.set(1, code, 0, 0);
|
||||
}
|
||||
|
||||
void ddayjlc_state::video_start()
|
||||
|
@ -196,7 +196,7 @@ WRITE16_MEMBER(ddealer_state::flipscreen_w)
|
||||
TILE_GET_INFO_MEMBER(ddealer_state::get_back_tile_info)
|
||||
{
|
||||
int code = m_back_vram[tile_index];
|
||||
SET_TILE_INFO_MEMBER(0,
|
||||
tileinfo.set(0,
|
||||
code & 0xfff,
|
||||
code >> 12,
|
||||
0);
|
||||
|
@ -362,7 +362,7 @@ TILE_GET_INFO_MEMBER(dmndrby_state::get_dmndrby_tile_info)
|
||||
int flipx = (attr&0x40)>>6;
|
||||
|
||||
|
||||
SET_TILE_INFO_MEMBER(2,
|
||||
tileinfo.set(2,
|
||||
code,
|
||||
col,
|
||||
TILE_FLIPYX(flipx) );
|
||||
|
@ -277,7 +277,7 @@ TILE_GET_INFO_MEMBER(dreamwld_state::get_tile_info)
|
||||
{
|
||||
const u16 tileno = m_vram[Layer][tile_index];
|
||||
const u16 colour = tileno >> 13;
|
||||
SET_TILE_INFO_MEMBER(1, (tileno & 0x1fff) | (m_tilebank[Layer] << 13), (Layer * 0x40) + colour, 0);
|
||||
tileinfo.set(1, (tileno & 0x1fff) | (m_tilebank[Layer] << 13), (Layer * 0x40) + colour, 0);
|
||||
}
|
||||
|
||||
|
||||
|
@ -68,7 +68,7 @@ TILE_GET_INFO_MEMBER(drtomy_state::get_tile_info_fg)
|
||||
{
|
||||
int code = m_videoram_fg[tile_index] & 0xfff;
|
||||
int color = (m_videoram_fg[tile_index] & 0xf000) >> 12;
|
||||
SET_TILE_INFO_MEMBER(2, code, color, 0);
|
||||
tileinfo.set(2, code, color, 0);
|
||||
}
|
||||
|
||||
|
||||
@ -76,7 +76,7 @@ TILE_GET_INFO_MEMBER(drtomy_state::get_tile_info_bg)
|
||||
{
|
||||
int code = m_videoram_bg[tile_index] & 0xfff;
|
||||
int color = (m_videoram_bg[tile_index] & 0xf000) >> 12;
|
||||
SET_TILE_INFO_MEMBER(1, code, color, 0);
|
||||
tileinfo.set(1, code, color, 0);
|
||||
}
|
||||
|
||||
|
||||
|
@ -333,7 +333,7 @@ TILE_GET_INFO_MEMBER(drw80pkr_state::get_bg_tile_info)
|
||||
int color = m_color_ram[tile_index];
|
||||
int code = m_video_ram[tile_index];
|
||||
|
||||
SET_TILE_INFO_MEMBER(0, code, color, 0);
|
||||
tileinfo.set(0, code, color, 0);
|
||||
}
|
||||
|
||||
void drw80pkr_state::video_start()
|
||||
|
@ -166,13 +166,13 @@ TILE_GET_INFO_MEMBER(dunhuang_state::get_tile_info)
|
||||
{
|
||||
uint16_t code = m_videoram[tile_index];
|
||||
uint8_t color = m_colorram[tile_index] & 0x0f;
|
||||
SET_TILE_INFO_MEMBER(0, code, color, 0);
|
||||
tileinfo.set(0, code, color, 0);
|
||||
}
|
||||
TILE_GET_INFO_MEMBER(dunhuang_state::get_tile_info2)
|
||||
{
|
||||
uint16_t code = m_videoram2[tile_index];
|
||||
uint8_t color = m_colorram2[tile_index] & 0x0f;
|
||||
SET_TILE_INFO_MEMBER(1, code, color, 0);
|
||||
tileinfo.set(1, code, color, 0);
|
||||
}
|
||||
|
||||
void dunhuang_state::video_start()
|
||||
|
@ -231,7 +231,7 @@ GFXDECODE_END
|
||||
TILE_GET_INFO_MEMBER(dynadice_state::get_tile_info)
|
||||
{
|
||||
int code = m_videoram[tile_index];
|
||||
SET_TILE_INFO_MEMBER(1, code, 0, 0);
|
||||
tileinfo.set(1, code, 0, 0);
|
||||
}
|
||||
|
||||
void dynadice_state::video_start()
|
||||
|
@ -207,7 +207,7 @@ TILE_GET_INFO_MEMBER(efdt_state::get_tile_info_0)
|
||||
//int code = data + (xtra << 8);
|
||||
int code = data + m_tilebank;
|
||||
|
||||
SET_TILE_INFO_MEMBER(0, code, pal, 0);
|
||||
tileinfo.set(0, code, pal, 0);
|
||||
}
|
||||
|
||||
TILE_GET_INFO_MEMBER(efdt_state::get_tile_info_1)
|
||||
@ -216,7 +216,7 @@ TILE_GET_INFO_MEMBER(efdt_state::get_tile_info_1)
|
||||
|
||||
int code = data;
|
||||
|
||||
SET_TILE_INFO_MEMBER(1, code, 0x1c, 0);
|
||||
tileinfo.set(1, code, 0x1c, 0);
|
||||
}
|
||||
|
||||
void efdt_state::video_start()
|
||||
|
@ -162,7 +162,7 @@ TILE_GET_INFO_MEMBER(egghunt_state::get_bg_tile_info)
|
||||
// code += 0;
|
||||
}
|
||||
|
||||
SET_TILE_INFO_MEMBER(0, code, colour, 0);
|
||||
tileinfo.set(0, code, colour, 0);
|
||||
}
|
||||
|
||||
READ8_MEMBER(egghunt_state::egghunt_bgram_r)
|
||||
|
@ -227,7 +227,7 @@ void ettrivia_state::get_tile_info(tile_data &tileinfo, int tile_index, uint8_t
|
||||
|
||||
code += m_gfx_bank * 0x100;
|
||||
|
||||
SET_TILE_INFO_MEMBER(gfx_code,code,color,0);
|
||||
tileinfo.set(gfx_code,code,color,0);
|
||||
}
|
||||
|
||||
TILE_GET_INFO_MEMBER(ettrivia_state::get_tile_info_bg)
|
||||
|
@ -235,7 +235,7 @@ WRITE8_MEMBER(firefox_state::firefox_disc_data_w)
|
||||
|
||||
TILE_GET_INFO_MEMBER(firefox_state::bgtile_get_info)
|
||||
{
|
||||
SET_TILE_INFO_MEMBER(0, m_tileram[tile_index], 0, 0);
|
||||
tileinfo.set(0, m_tileram[tile_index], 0, 0);
|
||||
}
|
||||
|
||||
|
||||
|
@ -164,7 +164,7 @@ TILE_GET_INFO_MEMBER(flower_state::get_bg_tile_info)
|
||||
int code = m_bgvram[tile_index];
|
||||
int color = (m_bgvram[tile_index+0x100] & 0xf0) >> 4;
|
||||
|
||||
SET_TILE_INFO_MEMBER(1, code, color, 0);
|
||||
tileinfo.set(1, code, color, 0);
|
||||
}
|
||||
|
||||
TILE_GET_INFO_MEMBER(flower_state::get_fg_tile_info)
|
||||
@ -172,7 +172,7 @@ TILE_GET_INFO_MEMBER(flower_state::get_fg_tile_info)
|
||||
int code = m_fgvram[tile_index];
|
||||
int color = (m_fgvram[tile_index+0x100] & 0xf0) >> 4;
|
||||
|
||||
SET_TILE_INFO_MEMBER(1, code, color, 0);
|
||||
tileinfo.set(1, code, color, 0);
|
||||
}
|
||||
|
||||
void flower_state::video_start()
|
||||
|
@ -135,7 +135,7 @@ TILE_GET_INFO_MEMBER(flyball_state::get_tile_info)
|
||||
if ((flags & TILE_FLIPX) && (flags & TILE_FLIPY))
|
||||
code += 64;
|
||||
|
||||
SET_TILE_INFO_MEMBER(0, code, 0, flags);
|
||||
tileinfo.set(0, code, 0, flags);
|
||||
}
|
||||
|
||||
|
||||
|
@ -116,7 +116,7 @@ TILE_GET_INFO_MEMBER(fresh_state::get_fresh_bg_tile_info)
|
||||
int tileno, pal;
|
||||
tileno = m_bg_videoram[tile_index];
|
||||
pal = m_attr_videoram[tile_index];
|
||||
SET_TILE_INFO_MEMBER(1, tileno, pal, 0);
|
||||
tileinfo.set(1, tileno, pal, 0);
|
||||
}
|
||||
|
||||
|
||||
@ -138,7 +138,7 @@ TILE_GET_INFO_MEMBER(fresh_state::get_fresh_bg_2_tile_info)
|
||||
int tileno, pal;
|
||||
tileno = m_bg_2_videoram[tile_index];
|
||||
pal = m_attr_2_videoram[tile_index];
|
||||
SET_TILE_INFO_MEMBER(0, tileno, pal, 0);
|
||||
tileinfo.set(0, tileno, pal, 0);
|
||||
}
|
||||
|
||||
|
||||
|
@ -102,7 +102,7 @@ TILE_GET_INFO_MEMBER(fun_tech_corp_state::get_fg_tile_info)
|
||||
|
||||
if (m_vreg&1) code |= 0x1000;
|
||||
|
||||
SET_TILE_INFO_MEMBER(0,
|
||||
tileinfo.set(0,
|
||||
code,
|
||||
attr>>4,
|
||||
0);
|
||||
@ -115,7 +115,7 @@ TILE_GET_INFO_MEMBER(fun_tech_corp_state::get_reel_tile_info)
|
||||
if (m_vreg & 0x4) code |= 0x100;
|
||||
if (m_vreg & 0x8) code |= 0x200;
|
||||
|
||||
SET_TILE_INFO_MEMBER(1,
|
||||
tileinfo.set(1,
|
||||
code,
|
||||
0,
|
||||
0);
|
||||
|
@ -139,31 +139,31 @@ private:
|
||||
TILE_GET_INFO_MEMBER(galaxi_state::get_bg1_tile_info)
|
||||
{
|
||||
uint16_t code = m_bg1_ram[tile_index];
|
||||
SET_TILE_INFO_MEMBER(0, code, 0x10 + (code >> 12), 0);
|
||||
tileinfo.set(0, code, 0x10 + (code >> 12), 0);
|
||||
}
|
||||
|
||||
TILE_GET_INFO_MEMBER(galaxi_state::get_bg2_tile_info)
|
||||
{
|
||||
uint16_t code = m_bg2_ram[tile_index];
|
||||
SET_TILE_INFO_MEMBER(0, code, 0x10 + (code >> 12), 0);
|
||||
tileinfo.set(0, code, 0x10 + (code >> 12), 0);
|
||||
}
|
||||
|
||||
TILE_GET_INFO_MEMBER(galaxi_state::get_bg3_tile_info)
|
||||
{
|
||||
uint16_t code = m_bg3_ram[tile_index];
|
||||
SET_TILE_INFO_MEMBER(0, code, (code >> 12), 0);
|
||||
tileinfo.set(0, code, (code >> 12), 0);
|
||||
}
|
||||
|
||||
TILE_GET_INFO_MEMBER(galaxi_state::get_bg4_tile_info)
|
||||
{
|
||||
uint16_t code = m_bg4_ram[tile_index];
|
||||
SET_TILE_INFO_MEMBER(0, code, (code >> 12), 0);
|
||||
tileinfo.set(0, code, (code >> 12), 0);
|
||||
}
|
||||
|
||||
TILE_GET_INFO_MEMBER(galaxi_state::get_fg_tile_info)
|
||||
{
|
||||
uint16_t code = m_fg_ram[tile_index];
|
||||
SET_TILE_INFO_MEMBER(1, code, 0x20 + (code >> 12), 0);
|
||||
tileinfo.set(1, code, 0x20 + (code >> 12), 0);
|
||||
}
|
||||
|
||||
WRITE16_MEMBER(galaxi_state::bg1_w)
|
||||
|
@ -270,7 +270,7 @@ TILE_GET_INFO_MEMBER(gluck2_state::get_tile_info)
|
||||
int bank = ((attr & 0xc0) >> 5 ) + ((attr & 0x02) >> 1 ); /* bits 1-6-7 handle the gfx banks */
|
||||
int color = (attr & 0x3c) >> 2; /* bits 2-3-4-5 handle the color */
|
||||
|
||||
SET_TILE_INFO_MEMBER(bank, code, color, 0);
|
||||
tileinfo.set(bank, code, color, 0);
|
||||
}
|
||||
|
||||
|
||||
|
@ -1495,7 +1495,7 @@ TILE_GET_INFO_MEMBER(goldnpkr_state::get_bg_tile_info)
|
||||
int bank = (attr & 0x02) >> 1; /* bit 1 switch the gfx banks */
|
||||
int color = (attr & 0x3c) >> 2; /* bits 2-3-4-5 for color */
|
||||
|
||||
SET_TILE_INFO_MEMBER(bank, code, color, 0);
|
||||
tileinfo.set(bank, code, color, 0);
|
||||
}
|
||||
|
||||
TILE_GET_INFO_MEMBER(goldnpkr_state::wcrdxtnd_get_bg_tile_info)
|
||||
@ -1513,7 +1513,7 @@ TILE_GET_INFO_MEMBER(goldnpkr_state::wcrdxtnd_get_bg_tile_info)
|
||||
int bank = (attr & 0x03) + ((attr & 0xc0) >> 4); /* bits 0, 1, 6 & 7 switch the gfx banks */
|
||||
int color = (attr & 0x3c) >> 2; /* bits 2-3-4-5 for color */
|
||||
|
||||
SET_TILE_INFO_MEMBER(bank, code, color, 0);
|
||||
tileinfo.set(bank, code, color, 0);
|
||||
}
|
||||
|
||||
TILE_GET_INFO_MEMBER(goldnpkr_state::super21p_get_bg_tile_info)
|
||||
@ -1531,7 +1531,7 @@ TILE_GET_INFO_MEMBER(goldnpkr_state::super21p_get_bg_tile_info)
|
||||
int bank = (attr & 0x03); // bits 0-1, switch the gfx banks
|
||||
int color = (attr & 0x70) >> 3; // bits 4-5-6 for color, shifted x2 to match the color groups used.
|
||||
|
||||
SET_TILE_INFO_MEMBER(bank, code, color, 0);
|
||||
tileinfo.set(bank, code, color, 0);
|
||||
|
||||
/*
|
||||
Color codes GFX bank 0 (chars)
|
||||
|
@ -87,7 +87,7 @@ TILE_GET_INFO_MEMBER(good_state::get_fg_tile_info)
|
||||
{
|
||||
int tileno = m_fg_tilemapram[tile_index * 2];
|
||||
int attr = m_fg_tilemapram[tile_index * 2 + 1] & 0xf;
|
||||
SET_TILE_INFO_MEMBER(0, tileno, attr, 0);
|
||||
tileinfo.set(0, tileno, attr, 0);
|
||||
}
|
||||
|
||||
WRITE16_MEMBER(good_state::bg_tilemapram_w)
|
||||
@ -100,7 +100,7 @@ TILE_GET_INFO_MEMBER(good_state::get_bg_tile_info)
|
||||
{
|
||||
int tileno = m_bg_tilemapram[tile_index * 2];
|
||||
int attr = m_bg_tilemapram[tile_index * 2 + 1] & 0xf;
|
||||
SET_TILE_INFO_MEMBER(1, tileno, attr, 0);
|
||||
tileinfo.set(1, tileno, attr, 0);
|
||||
}
|
||||
|
||||
|
||||
|
@ -247,28 +247,28 @@ TILE_GET_INFO_MEMBER( goodejan_state::seibucrtc_sc0_tile_info )
|
||||
int tile = m_sc0_vram[tile_index] & 0xfff;
|
||||
int color = (m_sc0_vram[tile_index] >> 12) & 0x0f;
|
||||
tile+=(m_seibucrtc_sc0bank<<12);
|
||||
SET_TILE_INFO_MEMBER(1, tile, color, 0);
|
||||
tileinfo.set(1, tile, color, 0);
|
||||
}
|
||||
|
||||
TILE_GET_INFO_MEMBER( goodejan_state::seibucrtc_sc2_tile_info )
|
||||
{
|
||||
int tile = m_sc2_vram[tile_index] & 0xfff;
|
||||
int color = (m_sc2_vram[tile_index] >> 12) & 0x0f;
|
||||
SET_TILE_INFO_MEMBER(2, tile, color, 0);
|
||||
tileinfo.set(2, tile, color, 0);
|
||||
}
|
||||
|
||||
TILE_GET_INFO_MEMBER( goodejan_state::seibucrtc_sc1_tile_info )
|
||||
{
|
||||
int tile = m_sc1_vram[tile_index] & 0xfff;
|
||||
int color = (m_sc1_vram[tile_index] >> 12) & 0x0f;
|
||||
SET_TILE_INFO_MEMBER(3, tile, color, 0);
|
||||
tileinfo.set(3, tile, color, 0);
|
||||
}
|
||||
|
||||
TILE_GET_INFO_MEMBER( goodejan_state::seibucrtc_sc3_tile_info )
|
||||
{
|
||||
int tile = m_sc3_vram[tile_index] & 0xfff;
|
||||
int color = (m_sc3_vram[tile_index] >> 12) & 0x0f;
|
||||
SET_TILE_INFO_MEMBER(4, tile, color, 0);
|
||||
tileinfo.set(4, tile, color, 0);
|
||||
}
|
||||
|
||||
void goodejan_state::draw_sprites(bitmap_ind16 &bitmap,const rectangle &cliprect,int pri)
|
||||
|
@ -76,7 +76,7 @@ private:
|
||||
TILE_GET_INFO_MEMBER(headonb_state::get_tile_info)
|
||||
{
|
||||
uint8_t code = m_video_ram[tile_index];
|
||||
SET_TILE_INFO_MEMBER(0, code, 0, 0);
|
||||
tileinfo.set(0, code, 0, 0);
|
||||
}
|
||||
|
||||
void headonb_state::video_start()
|
||||
|
@ -39,7 +39,7 @@ TILE_GET_INFO_MEMBER(hitme_state::get_hitme_tile_info)
|
||||
{
|
||||
/* the code is the low 6 bits */
|
||||
uint8_t code = m_videoram[tile_index] & 0x3f;
|
||||
SET_TILE_INFO_MEMBER(0, code, 0, 0);
|
||||
tileinfo.set(0, code, 0, 0);
|
||||
}
|
||||
|
||||
|
||||
|
@ -202,7 +202,7 @@ TILE_GET_INFO_MEMBER(hvyunit_state::get_bg_tile_info)
|
||||
int code = m_videoram[tile_index] + ((attr & 0x0f) << 8);
|
||||
int color = (attr >> 4);
|
||||
|
||||
SET_TILE_INFO_MEMBER(1, code, color, 0);
|
||||
tileinfo.set(1, code, color, 0);
|
||||
}
|
||||
|
||||
void hvyunit_state::video_start()
|
||||
|
@ -321,7 +321,7 @@ GFXDECODE_END
|
||||
|
||||
TILE_GET_INFO_MEMBER(i7000_state::get_bg_tile_info)
|
||||
{
|
||||
SET_TILE_INFO_MEMBER(0, /*code:*/ m_videoram[tile_index], /*color:*/ 0, 0);
|
||||
tileinfo.set(0, /*code:*/ m_videoram[tile_index], /*color:*/ 0, 0);
|
||||
}
|
||||
|
||||
void i7000_state::video_start()
|
||||
|
@ -152,7 +152,7 @@ TILE_GET_INFO_MEMBER(igs009_state::get_jingbell_reel1_tile_info)
|
||||
{
|
||||
int code = m_reel1_ram[tile_index];
|
||||
|
||||
SET_TILE_INFO_MEMBER(0,
|
||||
tileinfo.set(0,
|
||||
(code)+(((tile_index+1)&0x3)*0x100),
|
||||
(code & 0x80) ? 0xc : 0,
|
||||
0);
|
||||
@ -163,7 +163,7 @@ TILE_GET_INFO_MEMBER(igs009_state::get_gp98_reel1_tile_info)
|
||||
{
|
||||
int code = m_reel1_ram[tile_index];
|
||||
|
||||
SET_TILE_INFO_MEMBER(0,
|
||||
tileinfo.set(0,
|
||||
(code*4)+(tile_index&0x3),
|
||||
0,
|
||||
0);
|
||||
@ -180,7 +180,7 @@ TILE_GET_INFO_MEMBER(igs009_state::get_jingbell_reel2_tile_info)
|
||||
{
|
||||
int code = m_reel2_ram[tile_index];
|
||||
|
||||
SET_TILE_INFO_MEMBER(0,
|
||||
tileinfo.set(0,
|
||||
(code)+(((tile_index+1)&0x3)*0x100),
|
||||
(code & 0x80) ? 0xc : 0,
|
||||
0);
|
||||
@ -190,7 +190,7 @@ TILE_GET_INFO_MEMBER(igs009_state::get_gp98_reel2_tile_info)
|
||||
{
|
||||
int code = m_reel2_ram[tile_index];
|
||||
|
||||
SET_TILE_INFO_MEMBER(0,
|
||||
tileinfo.set(0,
|
||||
(code*4)+(tile_index&0x3),
|
||||
0,
|
||||
0);
|
||||
@ -208,7 +208,7 @@ TILE_GET_INFO_MEMBER(igs009_state::get_jingbell_reel3_tile_info)
|
||||
{
|
||||
int code = m_reel3_ram[tile_index];
|
||||
|
||||
SET_TILE_INFO_MEMBER(0,
|
||||
tileinfo.set(0,
|
||||
(code)+(((tile_index+1)&0x3)*0x100),
|
||||
(code & 0x80) ? 0xc : 0,
|
||||
0);
|
||||
@ -218,7 +218,7 @@ TILE_GET_INFO_MEMBER(igs009_state::get_gp98_reel3_tile_info)
|
||||
{
|
||||
int code = m_reel3_ram[tile_index];
|
||||
|
||||
SET_TILE_INFO_MEMBER(0,
|
||||
tileinfo.set(0,
|
||||
(code*4)+(tile_index&0x3),
|
||||
0,
|
||||
0);
|
||||
@ -236,7 +236,7 @@ TILE_GET_INFO_MEMBER(igs009_state::get_jingbell_reel4_tile_info)
|
||||
{
|
||||
int code = m_reel4_ram[tile_index];
|
||||
|
||||
SET_TILE_INFO_MEMBER(0,
|
||||
tileinfo.set(0,
|
||||
(code)+(((tile_index+1)&0x3)*0x100),
|
||||
(code & 0x80) ? 0xc : 0,
|
||||
0);
|
||||
@ -246,7 +246,7 @@ TILE_GET_INFO_MEMBER(igs009_state::get_gp98_reel4_tile_info)
|
||||
{
|
||||
int code = m_reel4_ram[tile_index];
|
||||
|
||||
SET_TILE_INFO_MEMBER(0,
|
||||
tileinfo.set(0,
|
||||
(code*4)+(tile_index&0x3),
|
||||
0,
|
||||
0);
|
||||
@ -264,7 +264,7 @@ WRITE8_MEMBER(igs009_state::bg_scroll_w)
|
||||
TILE_GET_INFO_MEMBER(igs009_state::get_fg_tile_info)
|
||||
{
|
||||
int code = m_fg_tile_ram[tile_index] | (m_fg_color_ram[tile_index] << 8);
|
||||
SET_TILE_INFO_MEMBER(1, code, (4*(code >> 14)+3), 0);
|
||||
tileinfo.set(1, code, (4*(code >> 14)+3), 0);
|
||||
}
|
||||
|
||||
WRITE8_MEMBER(igs009_state::fg_tile_w)
|
||||
|
@ -213,14 +213,14 @@ WRITE8_MEMBER(igspoker_state::igs_irqack_w)
|
||||
TILE_GET_INFO_MEMBER(igspoker_state::get_bg_tile_info)
|
||||
{
|
||||
int code = m_bg_tile_ram[tile_index];
|
||||
SET_TILE_INFO_MEMBER(1 + (tile_index & 3), code, 0, 0);
|
||||
tileinfo.set(1 + (tile_index & 3), code, 0, 0);
|
||||
}
|
||||
|
||||
TILE_GET_INFO_MEMBER(igspoker_state::get_fg_tile_info)
|
||||
{
|
||||
int code = m_fg_tile_ram[tile_index] | (m_fg_color_ram[tile_index] << 8);
|
||||
int tile = code & 0x1fff;
|
||||
SET_TILE_INFO_MEMBER(0, code, tile != 0x1fff ? ((code >> 12) & 0xe) + 1 : 0, 0);
|
||||
tileinfo.set(0, code, tile != 0x1fff ? ((code >> 12) & 0xe) + 1 : 0, 0);
|
||||
}
|
||||
|
||||
WRITE8_MEMBER(igspoker_state::bg_tile_w)
|
||||
|
@ -237,7 +237,7 @@ void istrebiteli_state::motogonki_palette(palette_device &palette) const
|
||||
|
||||
TILE_GET_INFO_MEMBER(istrebiteli_state::get_tile_info)
|
||||
{
|
||||
SET_TILE_INFO_MEMBER(0, m_tileram[tile_index] & 0x1f, 0, 0);
|
||||
tileinfo.set(0, m_tileram[tile_index] & 0x1f, 0, 0);
|
||||
}
|
||||
|
||||
void istrebiteli_state::init_istreb()
|
||||
|
@ -134,7 +134,7 @@ TILE_GET_INFO_MEMBER(jackie_state::get_fg_tile_info)
|
||||
{
|
||||
int code = m_fg_tile_ram[tile_index] | (m_fg_color_ram[tile_index] << 8);
|
||||
int tile = code & 0x1fff;
|
||||
SET_TILE_INFO_MEMBER(0, code, tile != 0x1fff ? ((code >> 12) & 0xe) + 1 : 0, 0);
|
||||
tileinfo.set(0, code, tile != 0x1fff ? ((code >> 12) & 0xe) + 1 : 0, 0);
|
||||
}
|
||||
|
||||
WRITE8_MEMBER(jackie_state::fg_tile_w)
|
||||
@ -160,7 +160,7 @@ template<uint8_t Which>
|
||||
TILE_GET_INFO_MEMBER(jackie_state::get_reel_tile_info)
|
||||
{
|
||||
int code = m_reel_ram[Which][tile_index];
|
||||
SET_TILE_INFO_MEMBER(1, code, 0, 0);
|
||||
tileinfo.set(1, code, 0, 0);
|
||||
}
|
||||
|
||||
void jackie_state::video_start()
|
||||
|
@ -281,7 +281,7 @@ TILE_GET_INFO_MEMBER(urashima_state::get_tile_info_urashima)
|
||||
uint16_t tile = code & 0xfff;
|
||||
int region = (TileChip == 0) ? m_tile_bank : 3;
|
||||
|
||||
SET_TILE_INFO_MEMBER(region,
|
||||
tileinfo.set(region,
|
||||
tile,
|
||||
code >> 12,
|
||||
0);
|
||||
|
@ -343,14 +343,14 @@ TILE_GET_INFO_MEMBER(darkhors_state::get_tile_info_0)
|
||||
{
|
||||
uint16_t tile = m_tmapram[tile_index] >> 16;
|
||||
uint16_t color = m_tmapram[tile_index] & 0xffff;
|
||||
SET_TILE_INFO_MEMBER(0, tile/2, (color & 0x200) ? (color & 0x1ff) : ((color & 0x0ff) * 4) , 0);
|
||||
tileinfo.set(0, tile/2, (color & 0x200) ? (color & 0x1ff) : ((color & 0x0ff) * 4) , 0);
|
||||
}
|
||||
|
||||
TILE_GET_INFO_MEMBER(darkhors_state::get_tile_info_1)
|
||||
{
|
||||
uint16_t tile = m_tmapram2[tile_index] >> 16;
|
||||
uint16_t color = m_tmapram2[tile_index] & 0xffff;
|
||||
SET_TILE_INFO_MEMBER(0, tile/2, (color & 0x200) ? (color & 0x1ff) : ((color & 0x0ff) * 4) , 0);
|
||||
tileinfo.set(0, tile/2, (color & 0x200) ? (color & 0x1ff) : ((color & 0x0ff) * 4) , 0);
|
||||
}
|
||||
|
||||
WRITE32_MEMBER(darkhors_state::tmapram_w)
|
||||
|
@ -147,7 +147,7 @@ TILE_GET_INFO_MEMBER(jokrwild_state::get_bg_tile_info)
|
||||
int code = m_videoram[tile_index] | ((attr & 0xc0) << 2);
|
||||
int color = (attr & 0x0f);
|
||||
|
||||
SET_TILE_INFO_MEMBER(0, code , color , 0);
|
||||
tileinfo.set(0, code , color , 0);
|
||||
}
|
||||
|
||||
void jokrwild_state::video_start()
|
||||
|
@ -486,7 +486,7 @@ TILE_GET_INFO_MEMBER(jollyjgr_state::get_bg_tile_info)
|
||||
{
|
||||
int color = m_colorram[((tile_index & 0x1f) << 1) | 1] & 7;
|
||||
int region = (m_tilemap_bank & 0x20) ? 2 : 0;
|
||||
SET_TILE_INFO_MEMBER(region, m_videoram[tile_index], color, 0);
|
||||
tileinfo.set(region, m_videoram[tile_index], color, 0);
|
||||
}
|
||||
|
||||
void jollyjgr_state::video_start()
|
||||
|
@ -222,13 +222,13 @@ const rgb_t joystand_state::BG15_TRANSPARENT = 0x99999999;
|
||||
TILE_GET_INFO_MEMBER(joystand_state::get_bg1_tile_info)
|
||||
{
|
||||
uint32_t code = (m_bg1_ram[tile_index * 2 + 0] << 16) | m_bg1_ram[tile_index * 2 + 1];
|
||||
SET_TILE_INFO_MEMBER(0, code & 0x00ffffff, code >> 24, 0);
|
||||
tileinfo.set(0, code & 0x00ffffff, code >> 24, 0);
|
||||
}
|
||||
|
||||
TILE_GET_INFO_MEMBER(joystand_state::get_bg2_tile_info)
|
||||
{
|
||||
uint32_t code = (m_bg2_ram[tile_index * 2 + 0] << 16) | m_bg2_ram[tile_index * 2 + 1];
|
||||
SET_TILE_INFO_MEMBER(0, code & 0x00ffffff, code >> 24, 0);
|
||||
tileinfo.set(0, code & 0x00ffffff, code >> 24, 0);
|
||||
}
|
||||
|
||||
WRITE16_MEMBER(joystand_state::bg1_w)
|
||||
|
@ -275,7 +275,7 @@ TILE_GET_INFO_MEMBER(jubilee_state::get_bg_tile_info)
|
||||
int bank = (attr & 0x03);
|
||||
int color = 0; /* fixed colors: one rom for each R, G and B. */
|
||||
|
||||
SET_TILE_INFO_MEMBER(bank, code, color, 0);
|
||||
tileinfo.set(bank, code, color, 0);
|
||||
}
|
||||
|
||||
|
||||
|
@ -187,7 +187,7 @@ TILE_GET_INFO_MEMBER(kingdrby_state::get_sc0_tile_info)
|
||||
|
||||
tile&=0x1ff;
|
||||
|
||||
SET_TILE_INFO_MEMBER(1,
|
||||
tileinfo.set(1,
|
||||
tile,
|
||||
color|0x40,
|
||||
0);
|
||||
@ -203,7 +203,7 @@ TILE_GET_INFO_MEMBER(kingdrby_state::get_sc1_tile_info)
|
||||
//0x13
|
||||
//
|
||||
|
||||
SET_TILE_INFO_MEMBER(1,
|
||||
tileinfo.set(1,
|
||||
tile,
|
||||
color|0x40,
|
||||
0);
|
||||
|
@ -88,7 +88,7 @@ private:
|
||||
TILE_GET_INFO_MEMBER(koftball_state::get_t1_tile_info)
|
||||
{
|
||||
int data = m_bmc_1_videoram[tile_index];
|
||||
SET_TILE_INFO_MEMBER(0,
|
||||
tileinfo.set(0,
|
||||
data,
|
||||
0,
|
||||
0);
|
||||
@ -97,7 +97,7 @@ TILE_GET_INFO_MEMBER(koftball_state::get_t1_tile_info)
|
||||
TILE_GET_INFO_MEMBER(koftball_state::get_t2_tile_info)
|
||||
{
|
||||
int data = m_bmc_2_videoram[tile_index];
|
||||
SET_TILE_INFO_MEMBER(0,
|
||||
tileinfo.set(0,
|
||||
data,
|
||||
0,
|
||||
0);
|
||||
|
@ -105,7 +105,7 @@ TILE_GET_INFO_MEMBER(koikoi_state::get_tile_info)
|
||||
int color = (m_videoram[tile_index + 0x400] & 0x1f);
|
||||
int flip = (m_videoram[tile_index + 0x400] & 0x80) ? (TILEMAP_FLIPX | TILEMAP_FLIPY) : 0;
|
||||
|
||||
SET_TILE_INFO_MEMBER(0, code, color, flip);
|
||||
tileinfo.set(0, code, color, flip);
|
||||
}
|
||||
|
||||
void koikoi_state::koikoi_palette(palette_device &palette) const
|
||||
|
@ -130,14 +130,14 @@ TILE_GET_INFO_MEMBER(lbeach_state::get_bg_tile_info)
|
||||
// d6,d7: color
|
||||
uint8_t code = m_bg_vram[tile_index];
|
||||
|
||||
SET_TILE_INFO_MEMBER(1, code & 0x1f, code >> 6 & 3, 0);
|
||||
tileinfo.set(1, code & 0x1f, code >> 6 & 3, 0);
|
||||
}
|
||||
|
||||
TILE_GET_INFO_MEMBER(lbeach_state::get_fg_tile_info)
|
||||
{
|
||||
uint8_t code = m_fg_vram[tile_index];
|
||||
|
||||
SET_TILE_INFO_MEMBER(0, code, 0, 0);
|
||||
tileinfo.set(0, code, 0, 0);
|
||||
}
|
||||
|
||||
void lbeach_state::video_start()
|
||||
|
@ -310,21 +310,21 @@ TILE_GET_INFO_MEMBER(limenko_state::get_bg_tile_info)
|
||||
{
|
||||
const u32 tile = m_bg_videoram[tile_index] & 0x7ffff;
|
||||
const u32 color = (m_bg_videoram[tile_index]>>28) & 0xf;
|
||||
SET_TILE_INFO_MEMBER(0, tile, color, 0);
|
||||
tileinfo.set(0, tile, color, 0);
|
||||
}
|
||||
|
||||
TILE_GET_INFO_MEMBER(limenko_state::get_md_tile_info)
|
||||
{
|
||||
const u32 tile = m_md_videoram[tile_index] & 0x7ffff;
|
||||
const u32 color = (m_md_videoram[tile_index]>>28) & 0xf;
|
||||
SET_TILE_INFO_MEMBER(0, tile, color, 0);
|
||||
tileinfo.set(0, tile, color, 0);
|
||||
}
|
||||
|
||||
TILE_GET_INFO_MEMBER(limenko_state::get_fg_tile_info)
|
||||
{
|
||||
const u32 tile = m_fg_videoram[tile_index] & 0x7ffff;
|
||||
const u32 color = (m_fg_videoram[tile_index]>>28) & 0xf;
|
||||
SET_TILE_INFO_MEMBER(0, tile, color, 0);
|
||||
tileinfo.set(0, tile, color, 0);
|
||||
}
|
||||
|
||||
void limenko_state::draw_single_sprite(bitmap_ind16 &dest_bmp,const rectangle &clip,u8 width, u8 height,
|
||||
|
@ -246,7 +246,7 @@ TILE_GET_INFO_MEMBER(looping_state::get_tile_info)
|
||||
{
|
||||
int tile_number = m_videoram[tile_index];
|
||||
int color = m_colorram[(tile_index & 0x1f) * 2 + 1] & 0x07;
|
||||
SET_TILE_INFO_MEMBER(0, tile_number, color, 0);
|
||||
tileinfo.set(0, tile_number, color, 0);
|
||||
}
|
||||
|
||||
|
||||
|
@ -375,7 +375,7 @@ TILE_GET_INFO_MEMBER(ltcasino_state::ltcasino_tile_info)
|
||||
|
||||
code |= BIT(attr, 7) << 8;
|
||||
|
||||
SET_TILE_INFO_MEMBER(0, code, 0, 0);
|
||||
tileinfo.set(0, code, 0, 0);
|
||||
}
|
||||
|
||||
TILE_GET_INFO_MEMBER(ltcasino_state::ltcasin2_tile_info)
|
||||
@ -386,7 +386,7 @@ TILE_GET_INFO_MEMBER(ltcasino_state::ltcasin2_tile_info)
|
||||
|
||||
code |= BIT(attr, 7) << 8;
|
||||
|
||||
SET_TILE_INFO_MEMBER(0, code, ((attr & 0x70) >> 1) | (attr & 7), 0);
|
||||
tileinfo.set(0, code, ((attr & 0x70) >> 1) | (attr & 7), 0);
|
||||
}
|
||||
|
||||
uint32_t ltcasino_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
|
||||
|
@ -179,7 +179,7 @@ TILE_GET_INFO_MEMBER(luckgrln_state::get_reel_tile_info)
|
||||
code |= (attr & 0xe0)<<3;
|
||||
|
||||
|
||||
SET_TILE_INFO_MEMBER(1,
|
||||
tileinfo.set(1,
|
||||
code,
|
||||
col,
|
||||
0);
|
||||
|
@ -146,7 +146,7 @@ TILE_GET_INFO_MEMBER(m14_state::m14_get_tile_info)
|
||||
|
||||
/* colorram & 0xf0 used but unknown purpose*/
|
||||
|
||||
SET_TILE_INFO_MEMBER(0,
|
||||
tileinfo.set(0,
|
||||
code,
|
||||
color,
|
||||
0);
|
||||
|
@ -323,14 +323,14 @@ TILE_GET_INFO_MEMBER(m63_state::get_bg_tile_info)
|
||||
int code = m_videoram[tile_index] | ((attr & 0x30) << 4);
|
||||
int color = (attr & 0x0f) + (m_pal_bank << 4);
|
||||
|
||||
SET_TILE_INFO_MEMBER(1, code, color, 0);
|
||||
tileinfo.set(1, code, color, 0);
|
||||
}
|
||||
|
||||
TILE_GET_INFO_MEMBER(m63_state::get_fg_tile_info)
|
||||
{
|
||||
int code = m_videoram2[tile_index];
|
||||
|
||||
SET_TILE_INFO_MEMBER(0, code, 0, m_fg_flag);
|
||||
tileinfo.set(0, code, 0, m_fg_flag);
|
||||
}
|
||||
|
||||
VIDEO_START_MEMBER(m63_state,m63)
|
||||
|
@ -229,7 +229,7 @@ WRITE16_MEMBER(magic10_state::layer2_videoram_w)
|
||||
|
||||
TILE_GET_INFO_MEMBER(magic10_state::get_layer0_tile_info)
|
||||
{
|
||||
SET_TILE_INFO_MEMBER(1,
|
||||
tileinfo.set(1,
|
||||
m_layer0_videoram[tile_index * 2],
|
||||
m_layer0_videoram[tile_index * 2 + 1] & 0x0f,
|
||||
TILE_FLIPYX((m_layer0_videoram[tile_index * 2 + 1] & 0xc0) >> 6));
|
||||
@ -237,7 +237,7 @@ TILE_GET_INFO_MEMBER(magic10_state::get_layer0_tile_info)
|
||||
|
||||
TILE_GET_INFO_MEMBER(magic10_state::get_layer1_tile_info)
|
||||
{
|
||||
SET_TILE_INFO_MEMBER(1,
|
||||
tileinfo.set(1,
|
||||
m_layer1_videoram[tile_index * 2],
|
||||
m_layer1_videoram[tile_index * 2 + 1] & 0x0f,
|
||||
TILE_FLIPYX((m_layer1_videoram[tile_index * 2 + 1] & 0xc0) >> 6));
|
||||
@ -245,7 +245,7 @@ TILE_GET_INFO_MEMBER(magic10_state::get_layer1_tile_info)
|
||||
|
||||
TILE_GET_INFO_MEMBER(magic10_state::get_layer2_tile_info)
|
||||
{
|
||||
SET_TILE_INFO_MEMBER(0,
|
||||
tileinfo.set(0,
|
||||
m_layer2_videoram[tile_index * 2],
|
||||
m_layer2_videoram[tile_index * 2 + 1] & 0x0f,0);
|
||||
}
|
||||
|
@ -537,7 +537,7 @@ TILE_GET_INFO_MEMBER(magicfly_state::get_magicfly_tile_info)
|
||||
m_colorram[0] = m_colorram[0] | ((m_colorram[0] & 0x08) << 4); /* only for 1st offset */
|
||||
//m_colorram[tile_index] = attr | ((attr & 0x08) << 4); /* for the whole color RAM */
|
||||
|
||||
SET_TILE_INFO_MEMBER(bank, code, color, 0);
|
||||
tileinfo.set(bank, code, color, 0);
|
||||
}
|
||||
|
||||
void magicfly_state::video_start()
|
||||
@ -568,7 +568,7 @@ TILE_GET_INFO_MEMBER(magicfly_state::get_7mezzo_tile_info)
|
||||
m_colorram[0] = m_colorram[0] | ((m_colorram[0] & 0x04) << 5); /* only for 1st offset */
|
||||
//m_colorram[tile_index] = attr | ((attr & 0x04) << 5); /* for the whole color RAM */
|
||||
|
||||
SET_TILE_INFO_MEMBER(bank, code, color, 0);
|
||||
tileinfo.set(bank, code, color, 0);
|
||||
}
|
||||
|
||||
VIDEO_START_MEMBER(magicfly_state, 7mezzo)
|
||||
|
@ -538,7 +538,7 @@ TILE_GET_INFO_MEMBER(majorpkr_state::bg_get_tile_info)
|
||||
{
|
||||
int code = m_bg_vram[2 * tile_index] + (m_bg_vram[2 * tile_index + 1] << 8);
|
||||
|
||||
SET_TILE_INFO_MEMBER(0,
|
||||
tileinfo.set(0,
|
||||
(code & 0x1fff),
|
||||
code >> 13,
|
||||
0);
|
||||
@ -548,7 +548,7 @@ TILE_GET_INFO_MEMBER(majorpkr_state::fg_get_tile_info)
|
||||
{
|
||||
int code = m_fg_vram[2 * tile_index] + (m_fg_vram[2 * tile_index + 1] << 8);
|
||||
|
||||
SET_TILE_INFO_MEMBER(1,
|
||||
tileinfo.set(1,
|
||||
(code & 0x07ff),
|
||||
code >> 13,
|
||||
(code & (1 << 12)) ? (TILE_FLIPX|TILE_FLIPY) : 0);
|
||||
|
@ -182,7 +182,7 @@ TILE_GET_INFO_MEMBER(marinedt_state::get_tile_info)
|
||||
{
|
||||
int code = m_vram[tile_index];
|
||||
|
||||
SET_TILE_INFO_MEMBER(0, code, 0, 0);
|
||||
tileinfo.set(0, code, 0, 0);
|
||||
}
|
||||
|
||||
// initialize sea bitmap gradient
|
||||
|
@ -66,7 +66,7 @@ TILE_GET_INFO_MEMBER(mastboyo_state::get_fg_tile_info)
|
||||
{
|
||||
int code = m_fgram[tile_index];
|
||||
int attr = m_fgram2[tile_index];
|
||||
SET_TILE_INFO_MEMBER(0,
|
||||
tileinfo.set(0,
|
||||
code,
|
||||
attr & 0x0f,
|
||||
0);
|
||||
|
@ -273,7 +273,7 @@ TILE_GET_INFO_MEMBER( mgames_state::tile_info )
|
||||
uint8_t code = m_video[tile_index];
|
||||
uint8_t color = m_video[tile_index + 0x400] & 0x3f;
|
||||
|
||||
SET_TILE_INFO_MEMBER(0, code, color, 0);
|
||||
tileinfo.set(0, code, color, 0);
|
||||
}
|
||||
|
||||
void mgames_state::machine_start()
|
||||
|
@ -80,7 +80,7 @@ TILE_GET_INFO_MEMBER(mgolf_state::get_tile_info)
|
||||
{
|
||||
uint8_t code = m_video_ram[tile_index];
|
||||
|
||||
SET_TILE_INFO_MEMBER(0, code, code >> 7, 0);
|
||||
tileinfo.set(0, code, code >> 7, 0);
|
||||
}
|
||||
|
||||
|
||||
|
@ -193,7 +193,7 @@ TILE_GET_INFO_MEMBER(mil4000_state::get_sc0_tile_info)
|
||||
int tile = data >> 14;
|
||||
int color = (m_sc0_vram[tile_index*2+1] & 0x1f)+0;
|
||||
|
||||
SET_TILE_INFO_MEMBER(0,
|
||||
tileinfo.set(0,
|
||||
tile,
|
||||
color,
|
||||
0);
|
||||
@ -205,7 +205,7 @@ TILE_GET_INFO_MEMBER(mil4000_state::get_sc1_tile_info)
|
||||
int tile = data >> 14;
|
||||
int color = (m_sc1_vram[tile_index*2+1] & 0x1f)+0x10;
|
||||
|
||||
SET_TILE_INFO_MEMBER(0,
|
||||
tileinfo.set(0,
|
||||
tile,
|
||||
color,
|
||||
0);
|
||||
@ -217,7 +217,7 @@ TILE_GET_INFO_MEMBER(mil4000_state::get_sc2_tile_info)
|
||||
int tile = data >> 14;
|
||||
int color = (m_sc2_vram[tile_index*2+1] & 0x1f)+0x20;
|
||||
|
||||
SET_TILE_INFO_MEMBER(0,
|
||||
tileinfo.set(0,
|
||||
tile,
|
||||
color,
|
||||
0);
|
||||
@ -229,7 +229,7 @@ TILE_GET_INFO_MEMBER(mil4000_state::get_sc3_tile_info)
|
||||
int tile = data >> 14;
|
||||
int color = (m_sc3_vram[tile_index*2+1] & 0x1f)+0x30;
|
||||
|
||||
SET_TILE_INFO_MEMBER(0,
|
||||
tileinfo.set(0,
|
||||
tile,
|
||||
color,
|
||||
0);
|
||||
|
@ -87,7 +87,7 @@ TILE_GET_INFO_MEMBER(mogura_state::get_mogura_tile_info)
|
||||
int code = m_tileram[tile_index];
|
||||
int attr = m_tileram[tile_index + 0x800];
|
||||
|
||||
SET_TILE_INFO_MEMBER(0,
|
||||
tileinfo.set(0,
|
||||
code,
|
||||
(attr >> 1) & 7,
|
||||
0);
|
||||
|
@ -104,7 +104,7 @@ TILE_GET_INFO_MEMBER(mole_state::get_bg_tile_info)
|
||||
{
|
||||
uint16_t code = m_tileram[tile_index];
|
||||
|
||||
SET_TILE_INFO_MEMBER((code & 0x200) ? 1 : 0, code & 0x1ff, 0, 0);
|
||||
tileinfo.set((code & 0x200) ? 1 : 0, code & 0x1ff, 0, 0);
|
||||
}
|
||||
|
||||
void mole_state::video_start()
|
||||
|
@ -283,8 +283,8 @@ TILE_GET_INFO_MEMBER(mpu12wbk_state::get_bg_tile_info)
|
||||
// int code = m_videoram[tile_index] | ((attr & 0xc0) << 2);
|
||||
// int color = (attr & 0x0f);
|
||||
|
||||
// SET_TILE_INFO_MEMBER(0, code, color, 0);
|
||||
SET_TILE_INFO_MEMBER(0, 0 ,0 ,0);
|
||||
// tileinfo.set(0, code, color, 0);
|
||||
tileinfo.set(0, 0 ,0 ,0);
|
||||
}
|
||||
|
||||
|
||||
|
@ -194,7 +194,7 @@ TILE_GET_INFO_MEMBER(igrosoft_gamble_state::get_igrosoft_gamble_tile_info)
|
||||
|
||||
tileinfo.category = (attr&0x100)>>8;
|
||||
|
||||
SET_TILE_INFO_MEMBER(0,
|
||||
tileinfo.set(0,
|
||||
code&0x1fff,
|
||||
attr&0x7,
|
||||
0);
|
||||
@ -204,7 +204,7 @@ TILE_GET_INFO_MEMBER(igrosoft_gamble_state::get_igrosoft_gamble_reel_tile_info)
|
||||
{
|
||||
int code = m_vid[tile_index*2+0x2000] | (m_vid[tile_index*2+0x2001] << 8);
|
||||
|
||||
SET_TILE_INFO_MEMBER(0,
|
||||
tileinfo.set(0,
|
||||
(code&0x1fff)+0x2000,
|
||||
(code>>14)+0x8,
|
||||
0);
|
||||
|
@ -2391,7 +2391,7 @@ TILE_GET_INFO_MEMBER(namcos23_state::TextTilemapGetInfo)
|
||||
* ----.xx--.----.---- flip
|
||||
* ----.--xx.xxxx.xxxx code
|
||||
*/
|
||||
SET_TILE_INFO_MEMBER(0, data&0x03ff, data>>12, TILE_FLIPYX((data&0x0c00)>>10));
|
||||
tileinfo.set(0, data&0x03ff, data>>12, TILE_FLIPYX((data&0x0c00)>>10));
|
||||
}
|
||||
|
||||
WRITE32_MEMBER(namcos23_state::textram_w)
|
||||
|
@ -118,7 +118,7 @@ TILE_GET_INFO_MEMBER(nibble_state::get_bg_tile_info)
|
||||
*/
|
||||
uint8_t code = m_videoram[tile_index];
|
||||
|
||||
SET_TILE_INFO_MEMBER(0 /* bank */, code, 0 /* color */, 0);
|
||||
tileinfo.set(0 /* bank */, code, 0 /* color */, 0);
|
||||
}
|
||||
|
||||
void nibble_state::video_start()
|
||||
|
@ -857,7 +857,7 @@ static INPUT_PORTS_START( wondstck )
|
||||
INPUT_PORTS_END
|
||||
|
||||
template<int Layer>
|
||||
TILE_GET_INFO_MEMBER(nmg5_state::get_tile_info){ SET_TILE_INFO_MEMBER(0, m_vram[Layer][tile_index] | (m_gfx_bank << 16), Layer ^ 1, 0);}
|
||||
TILE_GET_INFO_MEMBER(nmg5_state::get_tile_info){ tileinfo.set(0, m_vram[Layer][tile_index] | (m_gfx_bank << 16), Layer ^ 1, 0);}
|
||||
|
||||
void nmg5_state::video_start()
|
||||
{
|
||||
|
@ -136,7 +136,7 @@ TILE_GET_INFO_MEMBER(nsmpoker_state::get_bg_tile_info)
|
||||
// int bank = (attr & 0x08) >> 3;
|
||||
// int color = (attr & 0x03);
|
||||
|
||||
SET_TILE_INFO_MEMBER(0 /* bank */, code, 0 /* color */, 0);
|
||||
tileinfo.set(0 /* bank */, code, 0 /* color */, 0);
|
||||
}
|
||||
|
||||
|
||||
|
@ -179,7 +179,7 @@ TILE_GET_INFO_MEMBER(olibochu_state::get_bg_tile_info)
|
||||
int color = (attr & 0x1f) + 0x20;
|
||||
int flags = ((attr & 0x40) ? TILE_FLIPX : 0) | ((attr & 0x80) ? TILE_FLIPY : 0);
|
||||
|
||||
SET_TILE_INFO_MEMBER(0, code, color, flags);
|
||||
tileinfo.set(0, code, color, flags);
|
||||
}
|
||||
|
||||
void olibochu_state::video_start()
|
||||
|
@ -116,7 +116,7 @@ TILE_GET_INFO_MEMBER(onetwo_state::get_fg_tile_info)
|
||||
|
||||
code &= 0x7fff;
|
||||
|
||||
SET_TILE_INFO_MEMBER(0, code, color, 0);
|
||||
tileinfo.set(0, code, color, 0);
|
||||
}
|
||||
|
||||
void onetwo_state::video_start()
|
||||
|
@ -196,7 +196,7 @@ TILE_GET_INFO_MEMBER(panicr_state::get_bgtile_info)
|
||||
code=memregion("user1")->base()[tile_index];
|
||||
attr=memregion("user2")->base()[tile_index];
|
||||
code+=((attr&7)<<8);
|
||||
SET_TILE_INFO_MEMBER(1,
|
||||
tileinfo.set(1,
|
||||
code,
|
||||
(attr & 0xf0) >> 4,
|
||||
0);
|
||||
@ -211,7 +211,7 @@ TILE_GET_INFO_MEMBER(panicr_state::get_infotile_info_2)
|
||||
code=memregion("user1")->base()[tile_index];
|
||||
attr=memregion("user2")->base()[tile_index];
|
||||
code+=((attr&7)<<8);
|
||||
SET_TILE_INFO_MEMBER(3,
|
||||
tileinfo.set(3,
|
||||
code,
|
||||
0,
|
||||
0);
|
||||
@ -228,7 +228,7 @@ TILE_GET_INFO_MEMBER(panicr_state::get_txttile_info)
|
||||
|
||||
tileinfo.group = color;
|
||||
|
||||
SET_TILE_INFO_MEMBER(0,
|
||||
tileinfo.set(0,
|
||||
code + ((attr & 8) << 5),
|
||||
color,
|
||||
0);
|
||||
|
@ -85,7 +85,7 @@ TILE_GET_INFO_MEMBER(patapata_state::get_bg_tile_info)
|
||||
{
|
||||
int tileno = m_bg_videoram[tile_index];
|
||||
int pal = tileno>>12;
|
||||
SET_TILE_INFO_MEMBER(0, tileno&0x1fff, pal, 0);
|
||||
tileinfo.set(0, tileno&0x1fff, pal, 0);
|
||||
}
|
||||
|
||||
WRITE16_MEMBER(patapata_state::fg_videoram_w)
|
||||
@ -106,7 +106,7 @@ TILE_GET_INFO_MEMBER(patapata_state::get_fg_tile_info)
|
||||
int tileno = m_fg_videoram[tile_index];
|
||||
int pal = tileno>>12;
|
||||
|
||||
SET_TILE_INFO_MEMBER(1, (tileno&0x0fff)+(bank*0x1000), pal, 0);
|
||||
tileinfo.set(1, (tileno&0x0fff)+(bank*0x1000), pal, 0);
|
||||
}
|
||||
|
||||
TILEMAP_MAPPER_MEMBER(patapata_state::pagescan)
|
||||
|
@ -952,7 +952,7 @@ TILE_GET_INFO_MEMBER(peplus_state::get_bg_tile_info)
|
||||
color += 0x10;
|
||||
}
|
||||
|
||||
SET_TILE_INFO_MEMBER(0, code, color, 0);
|
||||
tileinfo.set(0, code, color, 0);
|
||||
}
|
||||
|
||||
void peplus_state::video_start()
|
||||
|
@ -148,14 +148,14 @@ void pipeline_state::machine_start()
|
||||
TILE_GET_INFO_MEMBER(pipeline_state::get_tile_info)
|
||||
{
|
||||
int code = m_vram2[tile_index] + m_vram2[tile_index + 0x800] * 256;
|
||||
SET_TILE_INFO_MEMBER(0, code, 0, 0);
|
||||
tileinfo.set(0, code, 0, 0);
|
||||
}
|
||||
|
||||
TILE_GET_INFO_MEMBER(pipeline_state::get_tile_info2)
|
||||
{
|
||||
int code = m_vram1[tile_index] + ((m_vram1[tile_index + 0x800] >> 4)) * 256;
|
||||
int color = ((m_vram1[tile_index + 0x800]) & 0xf);
|
||||
SET_TILE_INFO_MEMBER(1, code, color, 0);
|
||||
tileinfo.set(1, code, color, 0);
|
||||
}
|
||||
|
||||
void pipeline_state::video_start()
|
||||
|
@ -224,7 +224,7 @@ TILE_GET_INFO_MEMBER(pkscram_state::get_bg_tile_info)
|
||||
int const tile = m_bgtilemap_ram[tile_index*2];
|
||||
int const color = m_bgtilemap_ram[tile_index*2 + 1] & 0x7f;
|
||||
|
||||
SET_TILE_INFO_MEMBER(0, tile, color, 0);
|
||||
tileinfo.set(0, tile, color, 0);
|
||||
}
|
||||
|
||||
TILE_GET_INFO_MEMBER(pkscram_state::get_md_tile_info)
|
||||
@ -232,7 +232,7 @@ TILE_GET_INFO_MEMBER(pkscram_state::get_md_tile_info)
|
||||
int const tile = m_mdtilemap_ram[tile_index*2];
|
||||
int const color = m_mdtilemap_ram[tile_index*2 + 1] & 0x7f;
|
||||
|
||||
SET_TILE_INFO_MEMBER(0, tile, color, 0);
|
||||
tileinfo.set(0, tile, color, 0);
|
||||
}
|
||||
|
||||
TILE_GET_INFO_MEMBER(pkscram_state::get_fg_tile_info)
|
||||
@ -240,7 +240,7 @@ TILE_GET_INFO_MEMBER(pkscram_state::get_fg_tile_info)
|
||||
int const tile = m_fgtilemap_ram[tile_index*2];
|
||||
int const color = m_fgtilemap_ram[tile_index*2 + 1] & 0x7f;
|
||||
|
||||
SET_TILE_INFO_MEMBER(0, tile, color, 0);
|
||||
tileinfo.set(0, tile, color, 0);
|
||||
}
|
||||
|
||||
TIMER_DEVICE_CALLBACK_MEMBER(pkscram_state::scanline_callback)
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user