1
0
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:
Peter Evans
2018-02-21 23:32:57 -06:00
parent f9a277e7bc
commit 8e1ab0e950
5 changed files with 75 additions and 0 deletions
+4
View File
@@ -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
+4
View File
@@ -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);