From 9f67286779157e4f383f303afbd9a83b20f4cd1d Mon Sep 17 00:00:00 2001 From: Raimon Zamora Date: Tue, 16 Apr 2024 19:08:47 +0200 Subject: [PATCH] - [FIX] DJNZ() condition was reversed --- z80.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/z80.cpp b/z80.cpp index c6819d4..82c449e 100644 --- a/z80.cpp +++ b/z80.cpp @@ -519,7 +519,7 @@ namespace z80 { const int8_t d = (int8_t)READ_MEM_8(); rB--; - if (rB==0) + if (rB!=0) { rPC = rPC + d; t+=5;