From fbe7a1d1a6c32bf58d3463fbe917c194b31b07c9 Mon Sep 17 00:00:00 2001 From: hap Date: Thu, 12 Sep 2024 15:15:14 +0200 Subject: scptchess:correct dac polarity --- src/mame/cxg/computachess.cpp | 4 +++- src/mame/saitek/tschess.cpp | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/mame/cxg/computachess.cpp b/src/mame/cxg/computachess.cpp index 83bc1f3fb18..386836c3730 100644 --- a/src/mame/cxg/computachess.cpp +++ b/src/mame/cxg/computachess.cpp @@ -130,7 +130,7 @@ void computachess_state::mux_w(u8 data) void computachess_state::control_w(u16 data) { // D0: speaker out - m_dac->write(data & 1); + m_dac->write(~data & 1); // D2,D3: led select m_display->write_my(~data >> 2 & 3); @@ -208,6 +208,8 @@ void computachess_state::scptchess(machine_config &config) void computachess_state::scptchessa(machine_config &config) { scptchess(config); + + m_maincpu->write_d().set(FUNC(computachess_state::control_w)).exor(1); config.set_default_layout(layout_cxg_scptchessa); } diff --git a/src/mame/saitek/tschess.cpp b/src/mame/saitek/tschess.cpp index c0ce125346d..71565e7945f 100644 --- a/src/mame/saitek/tschess.cpp +++ b/src/mame/saitek/tschess.cpp @@ -5,7 +5,7 @@ SciSys Travel Sensor Chess (aka Travel Sensor) -The chess engine was written by Mark Taylor, employee at Intelligent Software +The chess engine was written by Mark Taylor, employee of Intelligent Software (formerly known as Philidor Software). The I/O is very similar to CXG Sensor Computachess (see cxg/computachess.cpp). @@ -100,7 +100,7 @@ void tschess_state::control_w(u16 data) m_display->write_my(~data >> 1 & 7); // D4: speaker out - m_dac->write(data >> 4 & 1); + m_dac->write(BIT(data, 4)); } u16 tschess_state::input_r() -- cgit v1.2.3