1
0
mirror of https://github.com/pevans/erc-c.git synced 2024-06-11 05:29:33 +00:00

We should check status for PLX/PLY

This commit is contained in:
Peter Evans 2018-02-28 19:53:26 -06:00
parent edd175c1f9
commit 4baec33e24

View File

@ -93,7 +93,10 @@ DEFINE_INST(plp)
*/
DEFINE_INST(plx)
{
cpu->X = mos6502_pop_stack(cpu);
SET_RESULT(mos6502_pop_stack(cpu));
mos6502_modify_status(cpu, MOS_NZ, cpu->X, result);
cpu->X = result;
}
/*
@ -101,7 +104,10 @@ DEFINE_INST(plx)
*/
DEFINE_INST(ply)
{
cpu->Y = mos6502_pop_stack(cpu);
SET_RESULT(mos6502_pop_stack(cpu));
mos6502_modify_status(cpu, MOS_NZ, cpu->Y, result);
cpu->Y = result;
}
/*