taito_b.cpp: fixed pixel layer offset and enable for Hit the Ice [Angelo Salese]

This commit is contained in:
angelosa 2017-10-18 07:57:54 +02:00
parent 59bd43d383
commit 96f937d233
4 changed files with 8 additions and 6 deletions

View File

@ -519,8 +519,7 @@ static ADDRESS_MAP_START( hitice_map, AS_PROGRAM, 16, taitob_state )
AM_RANGE(0x800000, 0x803fff) AM_RAM /* Main RAM */
AM_RANGE(0xa00000, 0xa01fff) AM_RAM_DEVWRITE("palette", palette_device, write) AM_SHARE("palette")
AM_RANGE(0xb00000, 0xb7ffff) AM_RAM_WRITE(hitice_pixelram_w) AM_SHARE("pixelram")
// { 0xbffff0, 0xbffff1, ???
AM_RANGE(0xbffff2, 0xbffff5) AM_WRITE(hitice_pixel_scroll_w)
AM_RANGE(0xbffff0, 0xbffff5) AM_WRITE(hitice_pixel_scroll_w)
// { 0xbffffa, 0xbffffb, ???
ADDRESS_MAP_END

View File

@ -50,7 +50,7 @@ public:
std::unique_ptr<bitmap_ind16> m_pixel_bitmap;
std::unique_ptr<bitmap_ind16> m_realpunc_bitmap;
uint16_t m_pixel_scroll[2];
uint16_t m_pixel_scroll[3];
int m_b_fg_color_base;
int m_b_sp_color_base;

View File

@ -257,6 +257,7 @@ void tc0220ioc_device::device_reset()
MACHINE_CONFIG_MEMBER( tc0220ioc_device::device_add_mconfig )
MCFG_WATCHDOG_ADD("watchdog")
// MCFG_WATCHDOG_TIME_INIT(attotime::from_msec(3200))
MACHINE_CONFIG_END
/*****************************************************************************

View File

@ -377,10 +377,12 @@ uint32_t taitob_state::screen_update_taitob(screen_device &screen, bitmap_ind16
m_tc0180vcu->tilemap_draw(screen, bitmap, cliprect, 1, 0);
if (m_pixel_bitmap) /* hitice only */
// TODO: only hiticej properly enables this up during attract mode,
// hitice / hiticerb keeps this disabled, maybe a btanb fixed in later revision?
if (m_pixel_bitmap && (m_pixel_scroll[0] & 0x5800) == 0x5000) /* hitice only */
{
int scrollx = -2 * m_pixel_scroll[0]; //+320;
int scrolly = - m_pixel_scroll[1]; //+240;
int scrollx = -2 * m_pixel_scroll[1]; //+320;
int scrolly = 16 - m_pixel_scroll[2]; //+240;
/* bit 15 of pixel_scroll[0] is probably flip screen */
copyscrollbitmap_trans(bitmap, *m_pixel_bitmap, 1, &scrollx, 1, &scrolly, cliprect, m_b_fg_color_base * 16);