mirror of
https://github.com/pevans/erc-c.git
synced 2025-01-17 19:30:13 +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:
parent
f7b8740c2e
commit
1abf0223c8
@ -36,7 +36,7 @@ DEFINE_INST(jmp)
|
|||||||
*/
|
*/
|
||||||
DEFINE_INST(jsr)
|
DEFINE_INST(jsr)
|
||||||
{
|
{
|
||||||
mos6502_push_stack(cpu, cpu->PC + 2);
|
mos6502_push_stack(cpu, cpu->PC);
|
||||||
cpu->PC = cpu->last_addr;
|
cpu->PC = cpu->last_addr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user