From 9e3b0e431ab60fc3a7a0b831450b7094488609a8 Mon Sep 17 00:00:00 2001 From: Olivier Galibert Date: Wed, 25 Mar 2020 18:10:52 +0100 Subject: ks0164: dbra goes to 0, not -1 (nw) --- src/devices/cpu/ks0164/ks0164.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3