Added coin counter and lockout to Asterix [Angelo Salese]

This commit is contained in:
angelosa 2016-09-21 16:21:23 +02:00
parent 0d7ea6afb4
commit e9e9761697

View File

@ -40,6 +40,14 @@ WRITE16_MEMBER(asterix_state::control2_w)
/* bit 5 is select tile bank */
m_k056832->set_tile_bank((data & 0x20) >> 5);
// TODO: looks like 0xffff is used from time to time for chip selection/reset something, not unlike Jackal
if((data & 0xff) != 0xff)
{
machine().bookkeeping().coin_counter_w(0, data & 0x08);
machine().bookkeeping().coin_counter_w(1, data & 0x10);
machine().bookkeeping().coin_lockout_w(0, data & 0x40);
machine().bookkeeping().coin_lockout_w(1, data & 0x80);
}
}
}