Skip to content

Commit

Permalink
Do not treat jump destinations as data accesses
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
parasyte committed Sep 13, 2024
1 parent 9da8020 commit 65f4a48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/debug.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 65f4a48

Please sign in to comment.