diff options
author | wilbertpol <wilbertpol@users.noreply.github.com> | 2018-05-26 21:45:32 +0200 |
---|---|---|
committer | Vas Crabb <cuavas@users.noreply.github.com> | 2018-05-27 05:45:32 +1000 |
commit | 5291d140218339dff4fa471b1f8f1cfab3eb3fa1 (patch) | |
tree | 76f2dd83bacede1d04ecfcd12135d7ad7245479f /src/mame/drivers/blitz68k.cpp | |
parent | c6e63ee748b64eb971e7091ea19848cc55f4d8b5 (diff) |
use plural names for output finders when there are multiple outputs (#3595)
* use plural names for output finders when there are multiple outputs (nw)
* use plural names for output finders when there are multiple outputs (nw)
* use plural names for output finders when there are multiple outputs (nw)
Diffstat (limited to 'src/mame/drivers/blitz68k.cpp')
-rw-r--r-- | src/mame/drivers/blitz68k.cpp | 72 |
1 files changed, 36 insertions, 36 deletions
diff --git a/src/mame/drivers/blitz68k.cpp b/src/mame/drivers/blitz68k.cpp index 3e362607057..6f6e3f7ded7 100644 --- a/src/mame/drivers/blitz68k.cpp +++ b/src/mame/drivers/blitz68k.cpp @@ -75,7 +75,7 @@ public: , m_maincpu(*this, "maincpu") , m_palette(*this, "palette") , m_crtc(*this, "crtc") - , m_led(*this, "led%u", 0U) + , m_leds(*this, "led%u", 0U) { } DECLARE_WRITE16_MEMBER(blit_copy_w); @@ -193,7 +193,7 @@ public: void steaser_map(address_map &map); protected: - virtual void machine_start() override { m_led.resolve(); } + virtual void machine_start() override { m_leds.resolve(); } optional_shared_ptr<uint16_t> m_nvram; std::unique_ptr<uint8_t[]> m_blit_buffer; @@ -211,7 +211,7 @@ protected: required_device<cpu_device> m_maincpu; required_device<palette_device> m_palette; optional_device<mc6845_device> m_crtc; - output_finder<17> m_led; + output_finder<17> m_leds; }; /************************************************************************************************************* @@ -878,13 +878,13 @@ WRITE16_MEMBER(blitz68k_state::cjffruit_leds1_w) if (ACCESSING_BITS_8_15) { machine().bookkeeping().coin_counter_w(0, data & 0x0100); // coin in - m_led[0] = BIT(data, 9); // win??? + m_leds[0] = BIT(data, 9); // win??? // 1 data & 0x0400 // win??? - m_led[2] = BIT(data, 11); // small - m_led[3] = BIT(data, 12); // big - m_led[4] = BIT(data, 13); // take - m_led[5] = BIT(data, 14); // double up - m_led[6] = BIT(data, 15); // cancel + m_leds[2] = BIT(data, 11); // small + m_leds[3] = BIT(data, 12); // big + m_leds[4] = BIT(data, 13); // take + m_leds[5] = BIT(data, 14); // double up + m_leds[6] = BIT(data, 15); // cancel show_leds123(); } } @@ -894,14 +894,14 @@ WRITE16_MEMBER(blitz68k_state::cjffruit_leds2_w) data = COMBINE_DATA(m_leds1); if (ACCESSING_BITS_8_15) { - m_led[ 7] = BIT(data, 8); // start - m_led[ 8] = BIT(data, 9); // bet - m_led[ 9] = BIT(data, 10); // hold 5 - m_led[10] = BIT(data, 11); // hold 4 - m_led[11] = BIT(data, 12); // hold 3 - m_led[12] = BIT(data, 13); // hold 2 - m_led[13] = BIT(data, 14); // collect - m_led[14] = BIT(data, 15); // call attendant + m_leds[ 7] = BIT(data, 8); // start + m_leds[ 8] = BIT(data, 9); // bet + m_leds[ 9] = BIT(data, 10); // hold 5 + m_leds[10] = BIT(data, 11); // hold 4 + m_leds[11] = BIT(data, 12); // hold 3 + m_leds[12] = BIT(data, 13); // hold 2 + m_leds[13] = BIT(data, 14); // collect + m_leds[14] = BIT(data, 15); // call attendant show_leds123(); } } @@ -911,8 +911,8 @@ WRITE16_MEMBER(blitz68k_state::cjffruit_leds3_w) data = COMBINE_DATA(m_leds2); if (ACCESSING_BITS_8_15) { - m_led[15] = BIT(data, 8); // hopper coins? - m_led[16] = BIT(data, 10); // coin out? + m_leds[15] = BIT(data, 8); // hopper coins? + m_leds[16] = BIT(data, 10); // coin out? show_leds123(); } } @@ -1016,13 +1016,13 @@ WRITE16_MEMBER(blitz68k_state::deucesw2_leds1_w) if (ACCESSING_BITS_8_15) { machine().bookkeeping().coin_counter_w(0, data & 0x0100); // coin in - m_led[0] = BIT(data, 9); // win??? + m_leds[0] = BIT(data, 9); // win??? // 1 data & 0x0400 // win??? - m_led[2] = BIT(data, 11); // small - m_led[3] = BIT(data, 12); // big - m_led[4] = BIT(data, 13); // take - m_led[5] = BIT(data, 14); // double up - m_led[6] = BIT(data, 15); // cancel + m_leds[2] = BIT(data, 11); // small + m_leds[3] = BIT(data, 12); // big + m_leds[4] = BIT(data, 13); // take + m_leds[5] = BIT(data, 14); // double up + m_leds[6] = BIT(data, 15); // cancel show_leds123(); } } @@ -1032,14 +1032,14 @@ WRITE16_MEMBER(blitz68k_state::deucesw2_leds2_w) data = COMBINE_DATA(m_leds1); if (ACCESSING_BITS_8_15) { - m_led[ 7] = BIT(data, 8); // start - m_led[ 8] = BIT(data, 9); // bet - m_led[ 9] = BIT(data, 10); // hold 5 - m_led[10] = BIT(data, 11); // hold 4 - m_led[11] = BIT(data, 12); // hold 3 - m_led[12] = BIT(data, 13); // hold 2 - m_led[13] = BIT(data, 14); // hold 1 - m_led[14] = BIT(data, 15); // call attendant + m_leds[ 7] = BIT(data, 8); // start + m_leds[ 8] = BIT(data, 9); // bet + m_leds[ 9] = BIT(data, 10); // hold 5 + m_leds[10] = BIT(data, 11); // hold 4 + m_leds[11] = BIT(data, 12); // hold 3 + m_leds[12] = BIT(data, 13); // hold 2 + m_leds[13] = BIT(data, 14); // hold 1 + m_leds[14] = BIT(data, 15); // call attendant show_leds123(); } } @@ -1049,8 +1049,8 @@ WRITE16_MEMBER(blitz68k_state::deucesw2_leds3_w) data = COMBINE_DATA(m_leds2); if (ACCESSING_BITS_8_15) { - m_led[15] = BIT(data, 8); // hopper coins? - m_led[16] = BIT(data, 10); // coin out? + m_leds[15] = BIT(data, 8); // hopper coins? + m_leds[16] = BIT(data, 10); // coin out? show_leds123(); } } @@ -1217,7 +1217,7 @@ WRITE16_MEMBER(blitz68k_state::hermit_leds2_w) data = COMBINE_DATA(m_leds1); if (ACCESSING_BITS_8_15) { - m_led[7] = BIT(data, 8); // button + m_leds[7] = BIT(data, 8); // button show_leds12(); } } |