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:
parent
f7b8740c2e
commit
1abf0223c8
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user