mirror of
https://github.com/holub/mame
synced 2025-04-23 17:00:53 +03:00
ups
This commit is contained in:
parent
a3c51a2018
commit
18dcd633bc
@ -92,7 +92,6 @@ TIMER_CALLBACK_MEMBER(fgoal_state::interrupt_callback)
|
||||
|
||||
unsigned fgoal_state::video_ram_address( )
|
||||
{
|
||||
//OBRISI.ME
|
||||
return 0x4000 | (m_row << 5) | (m_col >> 3);
|
||||
}
|
||||
|
||||
|
@ -18,7 +18,6 @@ Atari Fire Truck + Super Bug + Monte Carlo driver
|
||||
|
||||
void firetrk_state::set_service_mode(int enable)
|
||||
{
|
||||
//OBRISI.ME
|
||||
m_in_service_mode = enable;
|
||||
|
||||
/* watchdog is disabled during service mode */
|
||||
|
@ -248,7 +248,6 @@ UINT32 f1gp_state::screen_update_f1gp2(screen_device &screen, bitmap_ind16 &bitm
|
||||
// BOOTLEG
|
||||
void f1gp_state::f1gpb_draw_sprites( bitmap_ind16 &bitmap,const rectangle &cliprect )
|
||||
{
|
||||
//OBRISI.ME
|
||||
UINT16 *spriteram = m_spriteram;
|
||||
int attr_start, start_offset = m_spriteram.bytes() / 2 - 4;
|
||||
|
||||
|
@ -63,7 +63,6 @@
|
||||
|
||||
void fantland_state::draw_sprites(bitmap_ind16 &bitmap,const rectangle &cliprect)
|
||||
{
|
||||
//OBRISI.ME
|
||||
UINT8 *spriteram_2 = m_spriteram2;
|
||||
UINT8 *indx_ram = m_spriteram + 0x2000, // this ram contains indexes into offs_ram
|
||||
*offs_ram = m_spriteram + 0x2400, // this ram contains x,y offsets or indexes into spriteram_2
|
||||
|
@ -234,7 +234,6 @@ void fastfred_state::draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprec
|
||||
{
|
||||
const rectangle spritevisiblearea(2*8, 32*8-1, 2*8, 30*8-1);
|
||||
const rectangle spritevisibleareaflipx(0*8, 30*8-1, 2*8, 30*8-1);
|
||||
//OBRISI.ME
|
||||
int offs;
|
||||
|
||||
for (offs = m_spriteram.bytes() - 4; offs >= 0; offs -= 4)
|
||||
|
@ -26,7 +26,6 @@ void fastlane_state::palette_init()
|
||||
|
||||
void fastlane_state::set_pens( )
|
||||
{
|
||||
//OBRISI.ME
|
||||
int i;
|
||||
|
||||
for (i = 0x00; i < 0x800; i += 2)
|
||||
|
@ -192,7 +192,6 @@ WRITE8_MEMBER(firetrap_state::firetrap_bg2_scrolly_w)
|
||||
|
||||
void firetrap_state::draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect )
|
||||
{
|
||||
//OBRISI.ME
|
||||
int offs;
|
||||
|
||||
for (offs = 0; offs < m_spriteram.bytes(); offs += 4)
|
||||
|
@ -247,7 +247,6 @@ VIDEO_START_MEMBER(firetrk_state,montecar)
|
||||
|
||||
void firetrk_state::firetrk_draw_car(bitmap_ind16 &bitmap, const rectangle &cliprect, gfx_element **gfx, int which, int flash)
|
||||
{
|
||||
//OBRISI.ME
|
||||
int gfx_bank, code, color, flip_x, flip_y, x, y;
|
||||
|
||||
if (which)
|
||||
@ -277,7 +276,6 @@ void firetrk_state::firetrk_draw_car(bitmap_ind16 &bitmap, const rectangle &clip
|
||||
|
||||
void firetrk_state::superbug_draw_car(bitmap_ind16 &bitmap, const rectangle &cliprect, gfx_element **gfx, int flash)
|
||||
{
|
||||
//OBRISI.ME
|
||||
int gfx_bank = (*m_car_rot & 0x10) ? 4 : 3;
|
||||
int code = ~*m_car_rot & 0x03;
|
||||
int color = flash ? 1 : 0;
|
||||
@ -290,7 +288,6 @@ void firetrk_state::superbug_draw_car(bitmap_ind16 &bitmap, const rectangle &cli
|
||||
|
||||
void firetrk_state::montecar_draw_car(bitmap_ind16 &bitmap, const rectangle &cliprect, gfx_element **gfx, int which, int is_collision_detection)
|
||||
{
|
||||
//OBRISI.ME
|
||||
int gfx_bank, code, color, flip_x, flip_y, x, y;
|
||||
|
||||
if (which)
|
||||
|
@ -6,7 +6,6 @@
|
||||
|
||||
void fitfight_state::draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect, int layer )
|
||||
{
|
||||
//OBRISI.ME
|
||||
gfx_element *gfx = machine().gfx[3];
|
||||
UINT16 *source = m_spriteram;
|
||||
UINT16 *finish = source + 0x800 / 2;
|
||||
|
@ -28,7 +28,6 @@ void flower_state::palette_init()
|
||||
|
||||
void flower_state::draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect )
|
||||
{
|
||||
//OBRISI.ME
|
||||
gfx_element *gfx = machine().gfx[1];
|
||||
UINT8 *source = m_spriteram + 0x200;
|
||||
UINT8 *finish = source - 0x200;
|
||||
|
@ -161,7 +161,6 @@ WRITE8_MEMBER(flstory_state::flstory_scrlram_w)
|
||||
|
||||
void flstory_state::flstory_draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect, int pri )
|
||||
{
|
||||
//OBRISI.ME
|
||||
int i;
|
||||
|
||||
for (i = 0; i < 0x20; i++)
|
||||
@ -217,7 +216,6 @@ UINT32 flstory_state::screen_update_flstory(screen_device &screen, bitmap_ind16
|
||||
|
||||
void flstory_state::victnine_draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect )
|
||||
{
|
||||
//OBRISI.ME
|
||||
int i;
|
||||
|
||||
for (i = 0; i < 0x20; i++)
|
||||
|
@ -28,7 +28,6 @@ WRITE8_MEMBER(freekick_state::freek_videoram_w)
|
||||
|
||||
void freekick_state::gigas_draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect )
|
||||
{
|
||||
//OBRISI.ME
|
||||
int offs;
|
||||
|
||||
for (offs = 0; offs < m_spriteram.bytes(); offs += 4)
|
||||
@ -63,7 +62,6 @@ void freekick_state::gigas_draw_sprites( bitmap_ind16 &bitmap, const rectangle &
|
||||
|
||||
void freekick_state::pbillrd_draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect )
|
||||
{
|
||||
//OBRISI.ME
|
||||
int offs;
|
||||
|
||||
for (offs = 0; offs < m_spriteram.bytes(); offs += 4)
|
||||
@ -99,7 +97,6 @@ void freekick_state::pbillrd_draw_sprites( bitmap_ind16 &bitmap, const rectangle
|
||||
|
||||
void freekick_state::freekick_draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect )
|
||||
{
|
||||
//OBRISI.ME
|
||||
int offs;
|
||||
|
||||
for (offs = 0; offs < m_spriteram.bytes(); offs += 4)
|
||||
|
@ -17,7 +17,6 @@
|
||||
|
||||
inline void fromanc2_state::fromanc2_get_tile_info( tile_data &tileinfo, int tile_index, int vram, int layer )
|
||||
{
|
||||
//OBRISI.ME
|
||||
int tile, color;
|
||||
|
||||
tile = (m_videoram[vram][layer][tile_index] & 0x3fff) | (m_gfxbank[vram][layer] << 14);
|
||||
@ -38,7 +37,6 @@ TILE_GET_INFO_MEMBER(fromanc2_state::fromanc2_get_v1_l3_tile_info){ fromanc2_get
|
||||
|
||||
inline void fromanc2_state::fromancr_get_tile_info( tile_data &tileinfo, int tile_index, int vram, int layer )
|
||||
{
|
||||
//OBRISI.ME
|
||||
int tile, color;
|
||||
|
||||
tile = m_videoram[vram][layer][tile_index] | (m_gfxbank[vram][layer] << 16);
|
||||
@ -162,7 +160,6 @@ WRITE16_MEMBER(fromanc2_state::fromanc4_paletteram_1_w)
|
||||
|
||||
inline void fromanc2_state::fromanc2_dispvram_w( offs_t offset, UINT16 data, UINT16 mem_mask, int vram, int layer )
|
||||
{
|
||||
//OBRISI.ME
|
||||
layer += (offset < 0x1000) ? 0 : 1;
|
||||
|
||||
COMBINE_DATA(&m_videoram[vram][layer][offset & 0x0fff]);
|
||||
@ -253,7 +250,6 @@ WRITE16_MEMBER(fromanc2_state::fromanc2_gfxbank_1_w)
|
||||
|
||||
inline void fromanc2_state::fromancr_vram_w(offs_t offset, UINT16 data, UINT16 mem_mask, int layer )
|
||||
{
|
||||
//OBRISI.ME
|
||||
int vram = (offset < 0x1000) ? 0 : 1;
|
||||
|
||||
COMBINE_DATA(&m_videoram[vram][layer][offset & 0x0fff]);
|
||||
@ -292,7 +288,6 @@ WRITE16_MEMBER(fromanc2_state::fromancr_gfxreg_1_w)
|
||||
|
||||
void fromanc2_state::fromancr_gfxbank_w( int data )
|
||||
{
|
||||
//OBRISI.ME
|
||||
|
||||
m_gfxbank[0][0] = (data & 0x0010) >> 4; // BG (1P)
|
||||
m_gfxbank[0][1] = (data & 0xf000) >> 12; // FG (1P)
|
||||
@ -307,7 +302,6 @@ void fromanc2_state::fromancr_gfxbank_w( int data )
|
||||
|
||||
inline void fromanc2_state::fromanc4_vram_w( offs_t offset, UINT16 data, UINT16 mem_mask, int layer )
|
||||
{
|
||||
//OBRISI.ME
|
||||
int vram = (offset < 0x4000) ? 0 : 1;
|
||||
|
||||
COMBINE_DATA(&m_videoram[vram][layer][offset & 0x3fff]);
|
||||
|
@ -21,7 +21,6 @@
|
||||
|
||||
inline void fromance_state::get_fromance_tile_info( tile_data &tileinfo, int tile_index, int layer )
|
||||
{
|
||||
//OBRISI.ME
|
||||
int tile = ((m_local_videoram[layer][0x0000 + tile_index] & 0x80) << 9) |
|
||||
(m_local_videoram[layer][0x1000 + tile_index] << 8) |
|
||||
m_local_videoram[layer][0x2000 + tile_index];
|
||||
@ -36,7 +35,6 @@ TILE_GET_INFO_MEMBER(fromance_state::get_fromance_fg_tile_info){ get_fromance_ti
|
||||
|
||||
inline void fromance_state::get_nekkyoku_tile_info( tile_data &tileinfo, int tile_index, int layer )
|
||||
{
|
||||
//OBRISI.ME
|
||||
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;
|
||||
@ -57,7 +55,6 @@ TILE_GET_INFO_MEMBER(fromance_state::get_nekkyoku_fg_tile_info){ get_nekkyoku_ti
|
||||
|
||||
void fromance_state::init_common( )
|
||||
{
|
||||
//OBRISI.ME
|
||||
|
||||
/* allocate local videoram */
|
||||
m_local_videoram[0] = auto_alloc_array(machine(), UINT8, 0x1000 * 3);
|
||||
|
@ -92,7 +92,6 @@ void funkybee_state::video_start()
|
||||
|
||||
void funkybee_state::draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect )
|
||||
{
|
||||
//OBRISI.ME
|
||||
int offs;
|
||||
|
||||
for (offs = 0x0f; offs >= 0; offs--)
|
||||
@ -121,7 +120,6 @@ void funkybee_state::draw_sprites( bitmap_ind16 &bitmap, const rectangle &clipre
|
||||
|
||||
void funkybee_state::draw_columns( bitmap_ind16 &bitmap, const rectangle &cliprect )
|
||||
{
|
||||
//OBRISI.ME
|
||||
int offs;
|
||||
|
||||
for (offs = 0x1f; offs >= 0; offs--)
|
||||
|
@ -29,7 +29,6 @@ void funybubl_state::video_start()
|
||||
|
||||
void funybubl_state::draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect )
|
||||
{
|
||||
//OBRISI.ME
|
||||
UINT8 *source = &m_banked_vram[0x2000 - 0x20];
|
||||
UINT8 *finish = source - 0x1000;
|
||||
|
||||
|
@ -46,7 +46,6 @@
|
||||
|
||||
inline void fuuki16_state::get_tile_info(tile_data &tileinfo, tilemap_memory_index tile_index, int _N_)
|
||||
{
|
||||
//OBRISI.ME
|
||||
UINT16 code = m_vram[_N_][2 * tile_index + 0];
|
||||
UINT16 attr = m_vram[_N_][2 * tile_index + 1];
|
||||
SET_TILE_INFO_MEMBER(1 + _N_, code, attr & 0x3f, TILE_FLIPYX((attr >> 6) & 3));
|
||||
@ -265,7 +264,6 @@ if (screen.machine().input().code_pressed(KEYCODE_X))
|
||||
/* Wrapper to handle bg and bg2 ttogether */
|
||||
void fuuki16_state::fuuki16_draw_layer( bitmap_ind16 &bitmap, const rectangle &cliprect, int i, int flag, int pri )
|
||||
{
|
||||
//OBRISI.ME
|
||||
int buffer = (m_vregs[0x1e / 2] & 0x40);
|
||||
|
||||
switch( i )
|
||||
|
@ -50,7 +50,6 @@
|
||||
|
||||
inline void fuuki32_state::get_tile_info8bpp(tile_data &tileinfo, tilemap_memory_index tile_index, int _N_)
|
||||
{
|
||||
//OBRISI.ME
|
||||
UINT16 code = (m_vram[_N_][tile_index] & 0xffff0000) >> 16;
|
||||
UINT16 attr = (m_vram[_N_][tile_index] & 0x0000ffff);
|
||||
SET_TILE_INFO_MEMBER(1 + _N_, code, (attr & 0x3f) >> 4, TILE_FLIPYX((attr >> 6) & 3));
|
||||
@ -61,7 +60,6 @@ TILE_GET_INFO_MEMBER(fuuki32_state::get_tile_info_1){ get_tile_info8bpp(tileinfo
|
||||
|
||||
inline void fuuki32_state::get_tile_info4bpp(tile_data &tileinfo, tilemap_memory_index tile_index, int _N_)
|
||||
{
|
||||
//OBRISI.ME
|
||||
UINT16 code = (m_vram[_N_][tile_index] & 0xffff0000) >> 16;
|
||||
UINT16 attr = (m_vram[_N_][tile_index] & 0x0000ffff);
|
||||
SET_TILE_INFO_MEMBER(1 + _N_, code, attr & 0x3f, TILE_FLIPYX((attr >> 6) & 3));
|
||||
@ -288,7 +286,6 @@ if (screen.machine().input().code_pressed(KEYCODE_X))
|
||||
/* Wrapper to handle bg and bg2 ttogether */
|
||||
void fuuki32_state::fuuki32_draw_layer( bitmap_ind16 &bitmap, const rectangle &cliprect, int i, int flag, int pri )
|
||||
{
|
||||
//OBRISI.ME
|
||||
int buffer = ((m_vregs[0x1e / 4] & 0x0000ffff) & 0x40);
|
||||
|
||||
switch( i )
|
||||
|
Loading…
Reference in New Issue
Block a user