summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2023-05-07 18:28:02 -0400
committer AJR <ajrhacker@users.noreply.github.com>2023-05-07 18:28:02 -0400
commit8dbba0b52563d00cae075544341067907d1e92ac (patch)
treed5302c31a2818c66a6413206c16b98d9f6b9a85c
parent63117eb131602863cb7f0f4a98f1068180541195 (diff)
twin16.cpp: Correct polarity of uPD7759 ST line writes
-rw-r--r--src/mame/konami/twin16.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mame/konami/twin16.cpp b/src/mame/konami/twin16.cpp
index 5ee147ade3e..68346e6ec34 100644
--- a/src/mame/konami/twin16.cpp
+++ b/src/mame/konami/twin16.cpp
@@ -150,12 +150,12 @@ uint8_t twin16_state::upd_busy_r()
void twin16_state::upd_reset_w(uint8_t data)
{
- m_upd7759->reset_w(data & 2);
+ m_upd7759->reset_w(BIT(data, 1));
}
void twin16_state::upd_start_w(uint8_t data)
{
- m_upd7759->start_w(data & 1);
+ m_upd7759->start_w(!BIT(data, 0));
}
/* Memory Maps */
@@ -634,6 +634,9 @@ void twin16_state::machine_reset()
{
m_CPUA_register = 0;
m_CPUB_register = 0;
+
+ m_upd7759->reset_w(0);
+ m_upd7759->start_w(1);
}
void twin16_state::machine_start()