summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/subsino2.cpp
diff options
context:
space:
mode:
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
commit5291d140218339dff4fa471b1f8f1cfab3eb3fa1 (patch)
tree76f2dd83bacede1d04ecfcd12135d7ad7245479f /src/mame/drivers/subsino2.cpp
parentc6e63ee748b64eb971e7091ea19848cc55f4d8b5 (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/subsino2.cpp')
-rw-r--r--src/mame/drivers/subsino2.cpp88
1 files changed, 44 insertions, 44 deletions
diff --git a/src/mame/drivers/subsino2.cpp b/src/mame/drivers/subsino2.cpp
index 463a9de11a2..4b1c38acc08 100644
--- a/src/mame/drivers/subsino2.cpp
+++ b/src/mame/drivers/subsino2.cpp
@@ -95,7 +95,7 @@ public:
, m_screen(*this, "screen")
, m_palette(*this, "palette")
, m_hopper(*this, "hopper")
- , m_led(*this, "led%u", 0U)
+ , m_leds(*this, "led%u", 0U)
{ }
DECLARE_WRITE8_MEMBER(ss9601_byte_lo_w);
@@ -189,7 +189,7 @@ public:
void xtrain_io(address_map &map);
protected:
- virtual void machine_start() override { m_led.resolve(); }
+ virtual void machine_start() override { m_leds.resolve(); }
layer_t m_layers[2];
uint8_t m_ss9601_byte_lo;
@@ -211,7 +211,7 @@ protected:
required_device<screen_device> m_screen;
required_device<palette_device> m_palette;
optional_device<ticket_dispenser_device> m_hopper;
- output_finder<9> m_led;
+ output_finder<9> m_leds;
private:
inline void ss9601_get_tile_info(layer_t *l, tile_data &tileinfo, tilemap_memory_index tile_index);
@@ -997,20 +997,20 @@ WRITE16_MEMBER(subsino2_state::new2001_outputs_w)
case 0:
if (ACCESSING_BITS_8_15)
{
- m_led[0] = BIT(data, 14); // record?
- m_led[1] = BIT(data, 13); // shoot now
- m_led[2] = BIT(data, 12); // double
- m_led[3] = BIT(data, 11); // black/red
+ m_leds[0] = BIT(data, 14); // record?
+ m_leds[1] = BIT(data, 13); // shoot now
+ m_leds[2] = BIT(data, 12); // double
+ m_leds[3] = BIT(data, 11); // black/red
}
if (ACCESSING_BITS_0_7)
{
- m_led[4] = BIT(data, 7); // start
- m_led[5] = BIT(data, 6); // take
- m_led[6] = BIT(data, 5); // black/red
+ m_leds[4] = BIT(data, 7); // start
+ m_leds[5] = BIT(data, 6); // take
+ m_leds[6] = BIT(data, 5); // black/red
machine().bookkeeping().coin_counter_w(0, data & 0x0010); // coin in / key in
- m_led[7] = BIT(data, 2); // ?
- m_led[8] = BIT(data, 1); // ?
+ m_leds[7] = BIT(data, 2); // ?
+ m_leds[8] = BIT(data, 1); // ?
}
break;
}
@@ -1092,15 +1092,15 @@ WRITE16_MEMBER(subsino2_state::humlan_outputs_w)
case 0:
if (ACCESSING_BITS_8_15)
{
- m_led[5] = BIT(data, 13); // big or small
- m_led[4] = BIT(data, 10); // double
- m_led[3] = BIT(data, 9); // big or small
- m_led[2] = BIT(data, 8); // bet
+ m_leds[5] = BIT(data, 13); // big or small
+ m_leds[4] = BIT(data, 10); // double
+ m_leds[3] = BIT(data, 9); // big or small
+ m_leds[2] = BIT(data, 8); // bet
}
if (ACCESSING_BITS_0_7)
{
- m_led[1] = BIT(data, 7); // take
- m_led[0] = BIT(data, 6); // start
+ m_leds[1] = BIT(data, 7); // take
+ m_leds[0] = BIT(data, 6); // start
machine().bookkeeping().coin_counter_w(1, data & 0x0004); // key in
machine().bookkeeping().coin_counter_w(0, data & 0x0002); // coin in
}
@@ -1131,21 +1131,21 @@ WRITE8_MEMBER(subsino2_state::expcard_outputs_w)
break;
case 1: // C
- m_led[0] = BIT(data, 1); // raise
+ m_leds[0] = BIT(data, 1); // raise
break;
case 2: // B
- m_led[1] = BIT(data, 2); // hold 4 / small & hold 5 / big ?
- m_led[2] = BIT(data, 3); // hold 1 / bet
- m_led[3] = BIT(data, 4); // hold 2 / take ?
- m_led[4] = BIT(data, 5); // hold 3 / double up ?
+ m_leds[1] = BIT(data, 2); // hold 4 / small & hold 5 / big ?
+ m_leds[2] = BIT(data, 3); // hold 1 / bet
+ m_leds[3] = BIT(data, 4); // hold 2 / take ?
+ m_leds[4] = BIT(data, 5); // hold 3 / double up ?
break;
case 3: // A
machine().bookkeeping().coin_counter_w(0, data & 0x01 ); // coin in
machine().bookkeeping().coin_counter_w(1, data & 0x02 ); // key in
- m_led[5] = BIT(data, 4); // start
+ m_leds[5] = BIT(data, 4); // start
break;
}
@@ -1170,11 +1170,11 @@ WRITE8_MEMBER(subsino2_state::mtrain_outputs_w)
break;
case 1:
- m_led[0] = BIT(data, 0); // stop reel?
- m_led[1] = BIT(data, 1); // stop reel? (double or take)
- m_led[2] = BIT(data, 2); // start all
- m_led[3] = BIT(data, 3); // bet / stop all
- m_led[4] = BIT(data, 5); // stop reel? (double or take)
+ m_leds[0] = BIT(data, 0); // stop reel?
+ m_leds[1] = BIT(data, 1); // stop reel? (double or take)
+ m_leds[2] = BIT(data, 2); // start all
+ m_leds[3] = BIT(data, 3); // bet / stop all
+ m_leds[4] = BIT(data, 5); // stop reel? (double or take)
break;
case 2:
@@ -1385,22 +1385,22 @@ WRITE8_MEMBER(subsino2_state::xplan_outputs_w)
break;
case 1:
- m_led[0] = BIT(data, 1); // raise
+ m_leds[0] = BIT(data, 1); // raise
break;
case 2: // B
- m_led[1] = BIT(data, 2); // hold 1 / big ?
- m_led[2] = BIT(data, 3); // hold 5 / bet
- m_led[3] = BIT(data, 4); // hold 4 ?
- m_led[4] = BIT(data, 5); // hold 2 / double up
- m_led[5] = BIT(data, 6); // hold 3 / small ?
+ m_leds[1] = BIT(data, 2); // hold 1 / big ?
+ m_leds[2] = BIT(data, 3); // hold 5 / bet
+ m_leds[3] = BIT(data, 4); // hold 4 ?
+ m_leds[4] = BIT(data, 5); // hold 2 / double up
+ m_leds[5] = BIT(data, 6); // hold 3 / small ?
break;
case 3: // A
machine().bookkeeping().coin_counter_w(0, data & 0x01 );
machine().bookkeeping().coin_counter_w(1, data & 0x02 );
- m_led[6] = BIT(data, 4); // start / take
+ m_leds[6] = BIT(data, 4); // start / take
break;
}
@@ -1489,23 +1489,23 @@ WRITE8_MEMBER(subsino2_state::xtrain_outputs_w)
break;
case 1: // C
- m_led[0] = BIT(data, 1); // re-double
- m_led[1] = BIT(data, 2); // half double
+ m_leds[0] = BIT(data, 1); // re-double
+ m_leds[1] = BIT(data, 2); // half double
break;
case 2: // B
- m_led[2] = BIT(data, 1); // hold 3 / small
- m_led[3] = BIT(data, 2); // hold 2 / big
- m_led[4] = BIT(data, 3); // bet
- m_led[5] = BIT(data, 4); // hold1 / take
- m_led[6] = BIT(data, 5); // double up
+ m_leds[2] = BIT(data, 1); // hold 3 / small
+ m_leds[3] = BIT(data, 2); // hold 2 / big
+ m_leds[4] = BIT(data, 3); // bet
+ m_leds[5] = BIT(data, 4); // hold1 / take
+ m_leds[6] = BIT(data, 5); // double up
break;
case 3: // A
machine().bookkeeping().coin_counter_w(0, data & 0x01 ); // coin in
machine().bookkeeping().coin_counter_w(1, data & 0x02 ); // key in
- m_led[7] = BIT(data, 4); // start
+ m_leds[7] = BIT(data, 4); // start
break;
}