From 10ec62e8025eb43d1a096fb0962049670c3c148c Mon Sep 17 00:00:00 2001 From: mrb0nk500 Date: Tue, 26 Nov 2019 14:22:17 -0500 Subject: rev1 of Sux has been completed! I have now implemented BRK, and RTI. Also, BieHDC, and I will both be working on rev2. --- opcode.h | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) (limited to 'opcode.h') 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), -- cgit v1.2.3-13-gbd6f