summaryrefslogtreecommitdiff
path: root/opcode.h
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2019-11-26 14:22:17 -0500
committermrb0nk500 <b0nk@b0nk.xyz>2019-11-26 14:22:17 -0500
commit10ec62e8025eb43d1a096fb0962049670c3c148c (patch)
tree1024018bc21c28c7282ba17dfd76d14371682fa4 /opcode.h
parentc1e735ec8b0481c1ebc631cd495a10f72e47ba32 (diff)
rev1 of Sux has been completed!rev1
I have now implemented BRK, and RTI. Also, BieHDC, and I will both be working on rev2.
Diffstat (limited to 'opcode.h')
-rw-r--r--opcode.h19
1 files changed, 8 insertions, 11 deletions
diff --git a/opcode.h b/opcode.h
index cf93a16..3b44e4b 100644
--- a/opcode.h
+++ b/opcode.h
@@ -40,15 +40,15 @@
#define BCS 0x50 /* Branch if Carry Set. */
#define LSL 0x51 /* Logical Shift Left. */
#define SEC 0x58 /* SEt Carry flag. */
+#define STA 0x5B /* STore Accumulator. */
+#define STY 0x5D /* STore Y register. */
+#define STX 0x5E /* STore X register. */
#define BCC 0x60 /* Branch if Carry Clear. */
#define LSR 0x61 /* Logical Shift Right. */
#define CLC 0x68 /* CLear Carry flag. */
#define LDA 0x69 /* LoaD Accumulator. */
#define LDY 0x6A /* LoaD Y register. */
-#define STA 0x6B /* STore Accumulator. */
#define LDX 0x6C /* LoaD X register. */
-#define STY 0x6D /* STore Y register. */
-#define STX 0x6E /* STore X register. */
#define BEQ 0x70 /* Branch if EQual. */
#define ROL 0x71 /* ROtate Left. */
#define SSP 0x78 /* Set Stack Protection flag. */
@@ -158,10 +158,10 @@ static const char *opname[0x100] = {
OPNAME(SEC),
[0x59] = "LDA a",
[0x5A] = "LDY a",
- [0x5B] = "STA a",
+ [STA] = "STA a",
[0x5C] = "LDX a",
- [0x5D] = "STY a",
- [0x5E] = "STX a",
+ [STY] = "STY a",
+ [STX] = "STX a",
OPNAME(BCC),
[LSR] = "LSR #",
[0x62] = "ORY a",
@@ -171,10 +171,7 @@ static const char *opname[0x100] = {
OPNAME(CLC),
[LDA]= "LDA #",
[LDY]= "LDY #",
- [STA]= "STA #",
[LDX]= "LDX #",
- [STY]= "STY #",
- [STX]= "STX #",
OPNAME(BEQ),
[ROL] = "ROL #",
[0x72] = "XRY a",
@@ -225,12 +222,12 @@ static const char *opname[0x100] = {
OPNAME(CAX),
OPNAME(ENT),
OPNAME(RTI),
- [INC] = "INC #",
+ [INC] = "INC A",
OPNAME(INY),
OPNAME(IAY),
OPNAME(INX),
OPNAME(IAX),
- [DEC] = "DEC #",
+ [DEC] = "DEC A",
OPNAME(DEY),
OPNAME(DAY),
OPNAME(DEX),