mirror of
https://github.com/pevans/erc-c.git
synced 2025-08-08 05:25:01 +00:00
We should check status for PLX/PLY
This commit is contained in:
@@ -93,7 +93,10 @@ DEFINE_INST(plp)
|
|||||||
*/
|
*/
|
||||||
DEFINE_INST(plx)
|
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)
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user