1
0
mirror of https://github.com/pevans/erc-c.git synced 2024-11-30 08:51:53 +00:00

We should be using the rts handler function

Oops!
This commit is contained in:
Peter Evans 2017-12-09 14:53:18 -06:00
parent a720246e26
commit c4a6f77bcd

View File

@ -57,7 +57,7 @@ Test(mos6502_exec, rti)
Test(mos6502_exec, rts) Test(mos6502_exec, rts)
{ {
mos6502_push_stack(cpu, 333); mos6502_push_stack(cpu, 333);
mos6502_handle_rti(cpu, 0); mos6502_handle_rts(cpu, 0);
cr_assert_eq(cpu->PC, 333); cr_assert_eq(cpu->PC, 333);
} }