summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/multfish.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/multfish.cpp')
-rw-r--r--src/mame/drivers/multfish.cpp28
1 files changed, 15 insertions, 13 deletions
diff --git a/src/mame/drivers/multfish.cpp b/src/mame/drivers/multfish.cpp
index 33301361e23..d0282e6cc42 100644
--- a/src/mame/drivers/multfish.cpp
+++ b/src/mame/drivers/multfish.cpp
@@ -846,14 +846,14 @@ WRITE8_MEMBER(igrosoft_gamble_state::igrosoft_gamble_lamps1_w)
-X-- ---- Start Lamp 34A
X--- ---- Bet/Double Lamp 29B
*/
- output().set_lamp_value(1, ((data) & 1)); /* Hold 1 Lamp */
- output().set_lamp_value(2, ((data >> 1) & 1)); /* Hold 2 Lamp */
- output().set_lamp_value(3, ((data >> 2) & 1)); /* Hold 3 Lamp */
- output().set_lamp_value(4, ((data >> 3) & 1)); /* Hold 4 Lamp */
- output().set_lamp_value(5, ((data >> 4) & 1)); /* Hold 5 Lamp */
- output().set_lamp_value(8, ((data >> 5) & 1)); /* Help Lamp */
- output().set_lamp_value(6, ((data >> 6) & 1)); /* Start Lamp */
- output().set_lamp_value(0, ((data >> 7) & 1)); /* Bet/Double Lamp */
+ m_lamp[1] = BIT(data, 0); /* Hold 1 Lamp */
+ m_lamp[2] = BIT(data, 1); /* Hold 2 Lamp */
+ m_lamp[3] = BIT(data, 2); /* Hold 3 Lamp */
+ m_lamp[4] = BIT(data, 3); /* Hold 4 Lamp */
+ m_lamp[5] = BIT(data, 4); /* Hold 5 Lamp */
+ m_lamp[8] = BIT(data, 5); /* Help Lamp */
+ m_lamp[6] = BIT(data, 6); /* Start Lamp */
+ m_lamp[0] = BIT(data, 7); /* Bet/Double Lamp */
}
WRITE8_MEMBER(igrosoft_gamble_state::igrosoft_gamble_lamps2_w)
@@ -866,10 +866,10 @@ WRITE8_MEMBER(igrosoft_gamble_state::igrosoft_gamble_lamps2_w)
---- -X-- Maxbet Lamp 30B
---X ---- Upper Lamp Green 25B (Demo Mode)
*/
- output().set_lamp_value(9, ((data) & 1)); /* Payout Lamp */
- output().set_lamp_value(12, ((data >> 1) & 1)); /* Upper Lamp Yellow */
- output().set_lamp_value(7, ((data >> 2) & 1)); /* Maxbet Lamp */
- output().set_lamp_value(10, ((data >> 4) & 1)); /* Upper Lamp Green */
+ m_lamp[9] = BIT(data, 0); /* Payout Lamp */
+ m_lamp[12] = BIT(data, 1); /* Upper Lamp Yellow */
+ m_lamp[7] = BIT(data, 2); /* Maxbet Lamp */
+ m_lamp[10] = BIT(data, 4); /* Upper Lamp Green */
}
WRITE8_MEMBER(igrosoft_gamble_state::igrosoft_gamble_lamps3_w)
@@ -879,7 +879,7 @@ WRITE8_MEMBER(igrosoft_gamble_state::igrosoft_gamble_lamps3_w)
7654 3210
---- --X- Upper Lamp Red 26B (Service Mode)
*/
- output().set_lamp_value(11, ((data >> 1) & 1)); /* Upper Lamp Red */
+ m_lamp[11] = BIT(data, 1); /* Upper Lamp Red */
}
WRITE8_MEMBER(igrosoft_gamble_state::igrosoft_gamble_counters_w)
@@ -1010,6 +1010,8 @@ GFXDECODE_END
void igrosoft_gamble_state::machine_start()
{
+ m_lamp.resolve();
+
save_item(NAME(m_disp_enable));
save_item(NAME(m_rambk));
}