mirror of
https://github.com/holub/mame
synced 2025-05-25 23:35:26 +03:00
added flipy for ch2000
This commit is contained in:
parent
f117fe1d02
commit
ee356c11f9
@ -26,61 +26,65 @@ static TILE_GET_INFO( get_sfbonus_tile_info )
|
|||||||
{
|
{
|
||||||
int code = sfbonus_tilemap_ram[(tile_index*2)+0] | (sfbonus_tilemap_ram[(tile_index*2)+1]<<8);
|
int code = sfbonus_tilemap_ram[(tile_index*2)+0] | (sfbonus_tilemap_ram[(tile_index*2)+1]<<8);
|
||||||
int flipx = (sfbonus_tilemap_ram[(tile_index*2)+1] & 0x80)>>7;
|
int flipx = (sfbonus_tilemap_ram[(tile_index*2)+1] & 0x80)>>7;
|
||||||
// bit 6 might be flipy
|
int flipy = (sfbonus_tilemap_ram[(tile_index*2)+1] & 0x40)>>5;
|
||||||
|
|
||||||
SET_TILE_INFO(
|
SET_TILE_INFO(
|
||||||
0,
|
0,
|
||||||
code,
|
code,
|
||||||
0,
|
0,
|
||||||
TILE_FLIPYX(flipx));
|
TILE_FLIPYX(flipx | flipy));
|
||||||
}
|
}
|
||||||
|
|
||||||
static TILE_GET_INFO( get_sfbonus_reel_tile_info )
|
static TILE_GET_INFO( get_sfbonus_reel_tile_info )
|
||||||
{
|
{
|
||||||
int code = sfbonus_reel_ram[(tile_index*2)+0] | (sfbonus_reel_ram[(tile_index*2)+1]<<8);
|
int code = sfbonus_reel_ram[(tile_index*2)+0] | (sfbonus_reel_ram[(tile_index*2)+1]<<8);
|
||||||
int flipx = (sfbonus_reel_ram[(tile_index*2)+1] & 0x80)>>7;
|
int flipx = (sfbonus_reel_ram[(tile_index*2)+1] & 0x80)>>7;
|
||||||
|
int flipy = (sfbonus_reel_ram[(tile_index*2)+1] & 0x40)>>5;
|
||||||
|
|
||||||
SET_TILE_INFO(
|
SET_TILE_INFO(
|
||||||
1,
|
1,
|
||||||
code,
|
code,
|
||||||
0,
|
0,
|
||||||
TILE_FLIPYX(flipx));
|
TILE_FLIPYX(flipx | flipy));
|
||||||
}
|
}
|
||||||
|
|
||||||
static TILE_GET_INFO( get_sfbonus_reel2_tile_info )
|
static TILE_GET_INFO( get_sfbonus_reel2_tile_info )
|
||||||
{
|
{
|
||||||
int code = sfbonus_reel2_ram[(tile_index*2)+0] | (sfbonus_reel2_ram[(tile_index*2)+1]<<8);
|
int code = sfbonus_reel2_ram[(tile_index*2)+0] | (sfbonus_reel2_ram[(tile_index*2)+1]<<8);
|
||||||
int flipx = (sfbonus_reel2_ram[(tile_index*2)+1] & 0x80)>>7;
|
int flipx = (sfbonus_reel2_ram[(tile_index*2)+1] & 0x80)>>7;
|
||||||
|
int flipy = (sfbonus_reel2_ram[(tile_index*2)+1] & 0x40)>>5;
|
||||||
|
|
||||||
SET_TILE_INFO(
|
SET_TILE_INFO(
|
||||||
1,
|
1,
|
||||||
code,
|
code,
|
||||||
0,
|
0,
|
||||||
TILE_FLIPYX(flipx));
|
TILE_FLIPYX(flipx | flipy));
|
||||||
}
|
}
|
||||||
|
|
||||||
static TILE_GET_INFO( get_sfbonus_reel3_tile_info )
|
static TILE_GET_INFO( get_sfbonus_reel3_tile_info )
|
||||||
{
|
{
|
||||||
int code = sfbonus_reel3_ram[(tile_index*2)+0] | (sfbonus_reel3_ram[(tile_index*2)+1]<<8);
|
int code = sfbonus_reel3_ram[(tile_index*2)+0] | (sfbonus_reel3_ram[(tile_index*2)+1]<<8);
|
||||||
int flipx = (sfbonus_reel3_ram[(tile_index*2)+1] & 0x80)>>7;
|
int flipx = (sfbonus_reel3_ram[(tile_index*2)+1] & 0x80)>>7;
|
||||||
|
int flipy = (sfbonus_reel3_ram[(tile_index*2)+1] & 0x40)>>5;
|
||||||
|
|
||||||
SET_TILE_INFO(
|
SET_TILE_INFO(
|
||||||
1,
|
1,
|
||||||
code,
|
code,
|
||||||
0,
|
0,
|
||||||
TILE_FLIPYX(flipx));
|
TILE_FLIPYX(flipx | flipy));
|
||||||
}
|
}
|
||||||
|
|
||||||
static TILE_GET_INFO( get_sfbonus_reel4_tile_info )
|
static TILE_GET_INFO( get_sfbonus_reel4_tile_info )
|
||||||
{
|
{
|
||||||
int code = sfbonus_reel4_ram[(tile_index*2)+0] | (sfbonus_reel4_ram[(tile_index*2)+1]<<8);
|
int code = sfbonus_reel4_ram[(tile_index*2)+0] | (sfbonus_reel4_ram[(tile_index*2)+1]<<8);
|
||||||
int flipx = (sfbonus_reel4_ram[(tile_index*2)+1] & 0x80)>>7;
|
int flipx = (sfbonus_reel4_ram[(tile_index*2)+1] & 0x80)>>7;
|
||||||
|
int flipy = (sfbonus_reel4_ram[(tile_index*2)+1] & 0x40)>>5;
|
||||||
|
|
||||||
SET_TILE_INFO(
|
SET_TILE_INFO(
|
||||||
1,
|
1,
|
||||||
code,
|
code,
|
||||||
0,
|
0,
|
||||||
TILE_FLIPYX(flipx));
|
TILE_FLIPYX(flipx | flipy));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user