1
0
mirror of https://github.com/pevans/erc-c.git synced 2024-12-30 06:29:48 +00:00

The value of PC by that point is correct.

Adding 2 skips us ahead farther than we should be going.
This commit is contained in:
Peter Evans 2018-01-08 22:25:37 -06:00
parent f7b8740c2e
commit 1abf0223c8

View File

@ -36,7 +36,7 @@ DEFINE_INST(jmp)
*/
DEFINE_INST(jsr)
{
mos6502_push_stack(cpu, cpu->PC + 2);
mos6502_push_stack(cpu, cpu->PC);
cpu->PC = cpu->last_addr;
}