You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This line checks if new PC was set during execution of the last instruction, and if it wasn't, moves to next instruction. The thing is, that in this particular scenario PC was set, but to the same value as previously, so it's not detected correctly.
I fixed this in my fork of x6502 - but it deviated too far to create pull request, so check my commit instead:
Hello,
Consider the following code:
.org 8000 loop: jmp loop
This will translate to 4c 00 80 and will not be properly executed by the emulator, because of this part of the code:
if (m->pc == pc_start) { m->pc += pc_offset; }
x6502/emu.c
Line 73 in 5a3c040
This line checks if new PC was set during execution of the last instruction, and if it wasn't, moves to next instruction. The thing is, that in this particular scenario PC was set, but to the same value as previously, so it's not detected correctly.
I fixed this in my fork of x6502 - but it deviated too far to create pull request, so check my commit instead:
dbuchwald@21361c3
Ignore paths starting with samples/ and check the src/ instead.
The text was updated successfully, but these errors were encountered: