summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Olivier Galibert <galibert@pobox.com>2020-03-25 18:10:52 +0100
committer Olivier Galibert <galibert@pobox.com>2020-03-25 18:19:01 +0100
commit9e3b0e431ab60fc3a7a0b831450b7094488609a8 (patch)
tree7d9048a4963c58cc6751c493282a3e35c9733ef6
parent0ade8b82303d97cb6232d86ec04c7ea5e0796529 (diff)
ks0164: dbra goes to 0, not -1 (nw)
-rw-r--r--src/devices/cpu/ks0164/ks0164.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/devices/cpu/ks0164/ks0164.cpp b/src/devices/cpu/ks0164/ks0164.cpp
index f4122eeab5d..0c337a2bf11 100644
--- a/src/devices/cpu/ks0164/ks0164.cpp
+++ b/src/devices/cpu/ks0164/ks0164.cpp
@@ -577,7 +577,7 @@ void ks0164_cpu_device::execute_run()
m_r[R_PC] += 2;
m_r[r] --;
- if(m_r[r] != 0xffff)
+ if(m_r[r] != 0)
m_r[R_PC] = a;
break;
}