diff options
author | Dirk Best <mail@dirk-best.de> | 2018-01-25 11:12:12 +0100 |
---|---|---|
committer | Dirk Best <mail@dirk-best.de> | 2018-01-25 11:12:12 +0100 |
commit | a1ca4d3a2674658e626c2e7ec3ad8e77c475cdda (patch) | |
tree | 2de8e62d4b13b6bdceed4f00c56ddc2876f9d7d9 | |
parent | b30d6d96f9e61c80cb8fe6ea4e135ec6fe00951a (diff) |
asteroid: Add coin counters, clarify leds
-rw-r--r-- | src/mame/machine/asteroid.cpp | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/src/mame/machine/asteroid.cpp b/src/mame/machine/asteroid.cpp index 593af819b68..43154e8dc46 100644 --- a/src/mame/machine/asteroid.cpp +++ b/src/mame/machine/asteroid.cpp @@ -96,12 +96,24 @@ READ8_MEMBER(asteroid_state::asteroid_DSW1_r) WRITE8_MEMBER(asteroid_state::asteroid_bank_switch_w) { + // 76------ not used + // --5----- coin counter right coin + // ---4---- coin counter center coin + // ----3--- coin counter left coin + // -----2-- ramsel + // ------1- start2 led + // -------0 start1 led + + start1_led_w(BIT(data, 0)); + start2_led_w(BIT(data, 1)); + int bank = BIT(data, 2); m_ram1->set_entry(bank); m_ram2->set_entry(bank); - output().set_led_value(0, ~data & 0x02); - output().set_led_value(1, ~data & 0x01); + machine().bookkeeping().coin_counter_w(0, BIT(data, 3)); + machine().bookkeeping().coin_counter_w(1, BIT(data, 4)); + machine().bookkeeping().coin_counter_w(2, BIT(data, 5)); } |