From 65f4a482d560cf9e1e04b4ee4601245da7b74695 Mon Sep 17 00:00:00 2001 From: Jay Oster Date: Fri, 13 Sep 2024 12:37:11 -0700 Subject: [PATCH] Do not treat jump destinations as data accesses The two JMP instructions have address modes that imply a data access occurs. All branch instructions and JSR have `optype` 0, so they don't have this problem. --- src/debug.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/debug.cpp b/src/debug.cpp index 21717357..c34e6cd2 100644 --- a/src/debug.cpp +++ b/src/debug.cpp @@ -554,7 +554,7 @@ void LogCDData(uint8 *opcode, uint16 A, int size) case 4: memop = 0x20; break; } - if ((j = GetPRGAddress(A)) != -1) + if (((j = GetPRGAddress(A)) != -1) && (opcode[0] != 0x4C) && (opcode[0] != 0x6C)) { if (opwrite[opcode[0]] == 0) {