mirror of
https://github.com/pevans/erc-c.git
synced 2026-04-24 05:20:59 +00:00
Add support for PHX, PHY, PLX, PLY
These instructions allow you to push and pull (pop) the X and Y registers via the stack.
This commit is contained in:
@@ -105,8 +105,12 @@ enum instruction {
|
||||
ORA, // OR with Accumulator
|
||||
PHA, // PusH Accumulator
|
||||
PHP, // PusH Predicate register
|
||||
PHX, // PusH X register
|
||||
PHY, // PusH Y register
|
||||
PLA, // PulL Accumulator
|
||||
PLP, // PulL Predicate register
|
||||
PLX, // PulL X register
|
||||
PLY, // PulL Y register
|
||||
ROL, // ROtate Left
|
||||
ROR, // ROtate Right
|
||||
RTI, // ReTurn from Interrupt
|
||||
|
||||
@@ -214,8 +214,12 @@ DECL_INST(nop);
|
||||
DECL_INST(ora);
|
||||
DECL_INST(pha);
|
||||
DECL_INST(php);
|
||||
DECL_INST(phx);
|
||||
DECL_INST(phy);
|
||||
DECL_INST(pla);
|
||||
DECL_INST(plp);
|
||||
DECL_INST(plx);
|
||||
DECL_INST(ply);
|
||||
DECL_INST(rol);
|
||||
DECL_INST(ror);
|
||||
DECL_INST(rti);
|
||||
|
||||
Reference in New Issue
Block a user