summaryrefslogtreecommitdiffstats
path: root/src/mame/machine/ajax.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/machine/ajax.cpp')
-rw-r--r--src/mame/machine/ajax.cpp17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/mame/machine/ajax.cpp b/src/mame/machine/ajax.cpp
index d79a19b3477..c278cc7b3cc 100644
--- a/src/mame/machine/ajax.cpp
+++ b/src/mame/machine/ajax.cpp
@@ -79,14 +79,14 @@ WRITE8_MEMBER(ajax_state::bankswitch_w)
WRITE8_MEMBER(ajax_state::lamps_w)
{
- output().set_led_value(1, data & 0x02); /* super weapon lamp */
- output().set_led_value(2, data & 0x04); /* power up lamps */
- output().set_led_value(5, data & 0x04); /* power up lamps */
- output().set_led_value(0, data & 0x20); /* start lamp */
- output().set_led_value(3, data & 0x40); /* game over lamps */
- output().set_led_value(6, data & 0x40); /* game over lamps */
- output().set_led_value(4, data & 0x80); /* game over lamps */
- output().set_led_value(7, data & 0x80); /* game over lamps */
+ m_lamp[1] = BIT(data, 1); /* super weapon lamp */
+ m_lamp[2] = BIT(data, 2); /* power up lamps */
+ m_lamp[5] = BIT(data, 2); /* power up lamps */
+ m_lamp[0] = BIT(data, 5); /* start lamp */
+ m_lamp[3] = BIT(data, 6); /* game over lamps */
+ m_lamp[6] = BIT(data, 6); /* game over lamps */
+ m_lamp[4] = BIT(data, 7); /* game over lamps */
+ m_lamp[7] = BIT(data, 7); /* game over lamps */
}
/* ajax_ls138_f10:
@@ -199,6 +199,7 @@ void ajax_state::machine_start()
uint8_t *MAIN = memregion("maincpu")->base();
uint8_t *SUB = memregion("sub")->base();
+ m_lamp.resolve();
membank("mainbank")->configure_entries(0, 4, &MAIN[0x00000], 0x2000);
membank("mainbank")->configure_entries(4, 8, &MAIN[0x10000], 0x2000);
membank("subbank")->configure_entries(0, 9, &SUB[0x00000], 0x2000);