summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2021-08-26 20:07:07 -0400
committer AJR <ajrhacker@users.noreply.github.com>2021-08-26 20:07:07 -0400
commitea0b9ed65b06e83cb450b9b2135e77b2c220ba76 (patch)
tree99246d749061047e1ff8a8645f1f0ba1856fd1b5
parentb106b6a17b568aca77e6ec50b36cce5cad4fe5bb (diff)
hd6120: Fix effect of TAD on LINK flag
-rw-r--r--src/devices/cpu/pdp8/hd6120.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/devices/cpu/pdp8/hd6120.cpp b/src/devices/cpu/pdp8/hd6120.cpp
index 110dfffaea5..574cdde757a 100644
--- a/src/devices/cpu/pdp8/hd6120.cpp
+++ b/src/devices/cpu/pdp8/hd6120.cpp
@@ -606,9 +606,7 @@ void hd6120_device::execute_run()
case minor_state::TAD_4:
m_temp += m_ac;
if (m_temp >= 010000)
- m_flags |= 4;
- else
- m_flags &= 3;
+ m_flags ^= 4; // LINK is complemented upon carry out
next_instruction();
break;