From 7e2c8d99f1de7a8d9da7d40611bc2fca0eb87053 Mon Sep 17 00:00:00 2001 From: Melefo <42809472+Melefo@users.noreply.github.com> Date: Mon, 18 May 2020 11:18:05 +0200 Subject: [PATCH] Temporary better synchronisation between CPU & APU by decreasing the number of instructions and therefor the number of cycles --- sources/CPU/CPU.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/CPU/CPU.cpp b/sources/CPU/CPU.cpp index 88ce592..dc36ed4 100644 --- a/sources/CPU/CPU.cpp +++ b/sources/CPU/CPU.cpp @@ -205,7 +205,7 @@ namespace ComSquare::CPU { unsigned cycles = 0; - for (int i = 0; i < 0xFF; i++) { + for (int i = 0; i < 0x18; i++) { if (this->_isStopped) { cycles += 1; continue;