Previous 199869 Revisions Next

r33057 Wednesday 29th October, 2014 at 17:33:08 UTC by Alex W. Jackson
twin16: according to schems this is priority related, not a flip bit (nw)
[src/mame/video]twin16.c

trunk/src/mame/video/twin16.c
r241568r241569
2121{
2222   TWIN16_SCREEN_FLIPY     = 0x01,
2323   TWIN16_SCREEN_FLIPX     = 0x02, // confirmed: Hard Puncher Intro
24   TWIN16_UNKNOWN1         = 0x04, // ? Hard Puncher uses this
24   TWIN16_UNKNOWN_PRI0     = 0x04, // ? Hard Puncher uses this
2525   TWIN16_PLANE_ORDER      = 0x08, // confirmed: Devil Worlds
26   TWIN16_TILE_FLIPX       = 0x10, // unused?
27   TWIN16_TILE_FLIPY       = 0x20  // confirmed? Vulcan Venture
26   TWIN16_UNKNOWN_PRI2     = 0x10, // unused?
27   TWIN16_TILE_FLIPY       = 0x20  // confirmed: Vulcan Venture
2828};
2929
3030enum
r241568r241569
107107            flip |= (m_video_register&TWIN16_SCREEN_FLIPY) ? TILEMAP_FLIPY : 0;
108108            machine().tilemap().set_flip_all(flip);
109109         }
110         if (changed & (TWIN16_TILE_FLIPX | TWIN16_TILE_FLIPY))
110         if (changed & TWIN16_TILE_FLIPY)
111111         {
112112            m_scroll_tmap[0]->mark_all_dirty();
113113            m_scroll_tmap[1]->mark_all_dirty();
r241568r241569
418418   int code = (data & 0x1fff);
419419   int color = color_base + (data >> 13);
420420   int flags = 0;
421   if (m_video_register & TWIN16_TILE_FLIPX) flags |= TILE_FLIPX;
422421   if (m_video_register & TWIN16_TILE_FLIPY) flags |= TILE_FLIPY;
423422   SET_TILE_INFO_MEMBER(1, code, color, flags);
424423}
r241568r241569
434433   int code = (m_gfx_bank[bank] << 11) | (data & 0x7ff);
435434   int color = color_base | (data >> 13);
436435   int flags = 0;
437   if (m_video_register & TWIN16_TILE_FLIPX) flags |= TILE_FLIPX;
438436   if (m_video_register & TWIN16_TILE_FLIPY) flags |= TILE_FLIPY;
439437   SET_TILE_INFO_MEMBER(1, code, color, flags);
440438}


Previous 199869 Revisions Next


© 1997-2024 The MAME Team