scptchess:correct dac polarity

This commit is contained in:
hap 2024-09-12 15:15:14 +02:00
parent 5ba1819de4
commit fbe7a1d1a6
2 changed files with 5 additions and 3 deletions

View File

@ -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);
}

View File

@ -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()