From d46cc72f508ac6b6bf39fd07b6199a86d869fe58 Mon Sep 17 00:00:00 2001 From: RobertoFresca Date: Sat, 7 Oct 2017 23:45:22 -0300 Subject: Note Chance: Mapped the port FFh to the lamps panel for debugging purposes. [Roberto Fresca] --- src/mame/drivers/notechan.cpp | 17 ++++++++++++++++- src/mame/layout/notechan.lay | 2 +- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/src/mame/drivers/notechan.cpp b/src/mame/drivers/notechan.cpp index 08a7842847e..3574c2e5246 100644 --- a/src/mame/drivers/notechan.cpp +++ b/src/mame/drivers/notechan.cpp @@ -144,6 +144,7 @@ public: DECLARE_WRITE8_MEMBER(out_f8_w); DECLARE_WRITE8_MEMBER(out_f9_w); DECLARE_WRITE8_MEMBER(out_fa_w); + DECLARE_WRITE8_MEMBER(out_ff_w); }; @@ -163,7 +164,7 @@ static ADDRESS_MAP_START( notechan_port_map, AS_IO, 8, notechan_state ) AM_RANGE(0xf9, 0xf9) AM_READ_PORT("IN1") AM_WRITE(out_f9_w) AM_RANGE(0xfa, 0xfa) AM_READ_PORT("IN2") AM_WRITE(out_fa_w) AM_RANGE(0xfb, 0xfb) AM_READ_PORT("IN3") - AM_RANGE(0xff, 0xff) AM_WRITENOP // watchdog reset? (written immediately upon reset, INT and NMI) + AM_RANGE(0xff, 0xff) AM_WRITE(out_ff_w) // watchdog reset? (written immediately upon reset, INT and NMI) ADDRESS_MAP_END @@ -213,6 +214,20 @@ WRITE8_MEMBER(notechan_state::out_fa_w) logerror("Output %02X to $FA\n", data); } +WRITE8_MEMBER(notechan_state::out_ff_w) +{ + output().set_lamp_value(24, data & 1 ); + output().set_lamp_value(25, data >> 1 & 1); + output().set_lamp_value(26, data >> 2 & 1); + output().set_lamp_value(27, data >> 3 & 1); + output().set_lamp_value(28, data >> 4 & 1); + output().set_lamp_value(29, data >> 5 & 1); + output().set_lamp_value(30, data >> 6 & 1); + output().set_lamp_value(31, data >> 7 & 1); + + logerror("Output %02X to $FF\n", data); +} + /********************************************* * Input Ports Definitions * diff --git a/src/mame/layout/notechan.lay b/src/mame/layout/notechan.lay index 479eaf533ea..d3cc330975f 100644 --- a/src/mame/layout/notechan.lay +++ b/src/mame/layout/notechan.lay @@ -437,7 +437,7 @@ --> - +