From: cuz Date: Fri, 8 Aug 2003 19:23:55 +0000 (+0000) Subject: Added additional 65(S)C02 opcodes X-Git-Tag: V2.12.0~1469 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=11328d8ea65aa7c66febcc44f43fba8a7a3c1da1;p=cc65 Added additional 65(S)C02 opcodes git-svn-id: svn://svn.cc65.org/cc65/trunk@2254 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/da65/handler.c b/src/da65/handler.c index 8102c05de..b22ffbfaf 100644 --- a/src/da65/handler.c +++ b/src/da65/handler.c @@ -43,9 +43,9 @@ #include "code.h" #include "error.h" #include "global.h" +#include "handler.h" #include "opctable.h" #include "output.h" -#include "handler.h" @@ -90,34 +90,34 @@ static void OneLine (const OpcDesc* D, const char* Arg, ...) -static const char* GetAddrArg (const OpcDesc* D, unsigned Addr) +static const char* GetAddrArg (unsigned Flags, unsigned Addr) /* Return an address argument - a label if we have one, or the address itself */ { const char* Label = 0; - if (D->LabelFlag & lfUseLabel) { - Label = GetLabel (Addr); + if (Flags & flUseLabel) { + Label = GetLabel (Addr); } if (Label) { - return Label; + return Label; } else { - static char Buf [32]; - if (Addr < 0x100) { - xsprintf (Buf, sizeof (Buf), "$%02X", Addr); - } else { - xsprintf (Buf, sizeof (Buf), "$%04X", Addr); - } - return Buf; + static char Buf [32]; + if (Addr < 0x100) { + xsprintf (Buf, sizeof (Buf), "$%02X", Addr); + } else { + xsprintf (Buf, sizeof (Buf), "$%04X", Addr); + } + return Buf; } } -static void GenerateLabel (const OpcDesc* D, unsigned Addr) +static void GenerateLabel (unsigned Flags, unsigned Addr) /* Generate a label in pass one if requested */ { if (Pass == 1 && !HaveLabel (Addr)) { - if ((D->LabelFlag & lfGenLabel) != 0 || - ((D->LabelFlag & lfUseLabel) != 0 && Addr >= CodeStart && Addr <= CodeEnd)) { + if ((Flags & flGenLabel) != 0 || + ((Flags & flUseLabel) != 0 && Addr >= CodeStart && Addr <= CodeEnd)) { AddLabel (Addr, atIntLabel, MakeLabelName (Addr)); } } @@ -131,6 +131,13 @@ static void GenerateLabel (const OpcDesc* D, unsigned Addr) +void OH_Illegal (const OpcDesc* D attribute ((unused))) +{ + DataByteLine (1); +} + + + void OH_Accumulator (const OpcDesc* D) { OneLine (D, "a"); @@ -160,10 +167,10 @@ void OH_Direct (const OpcDesc* D) unsigned Addr = GetCodeByte (PC+1); /* Generate a label in pass 1 */ - GenerateLabel (D, Addr); + GenerateLabel (D->Flags, Addr); /* Output the line */ - OneLine (D, "%s", GetAddrArg (D, Addr)); + OneLine (D, "%s", GetAddrArg (D->Flags, Addr)); } @@ -174,10 +181,10 @@ void OH_DirectX (const OpcDesc* D) unsigned Addr = GetCodeByte (PC+1); /* Generate a label in pass 1 */ - GenerateLabel (D, Addr); + GenerateLabel (D->Flags, Addr); /* Output the line */ - OneLine (D, "%s,x", GetAddrArg (D, Addr)); + OneLine (D, "%s,x", GetAddrArg (D->Flags, Addr)); } @@ -188,10 +195,10 @@ void OH_DirectY (const OpcDesc* D) unsigned Addr = GetCodeByte (PC+1); /* Generate a label in pass 1 */ - GenerateLabel (D, Addr); + GenerateLabel (D->Flags, Addr); /* Output the line */ - OneLine (D, "%s,y", GetAddrArg (D, Addr)); + OneLine (D, "%s,y", GetAddrArg (D->Flags, Addr)); } @@ -202,10 +209,10 @@ void OH_Absolute (const OpcDesc* D) unsigned Addr = GetCodeWord (PC+1); /* Generate a label in pass 1 */ - GenerateLabel (D, Addr); + GenerateLabel (D->Flags, Addr); /* Output the line */ - OneLine (D, "%s", GetAddrArg (D, Addr)); + OneLine (D, "%s", GetAddrArg (D->Flags, Addr)); } @@ -216,10 +223,10 @@ void OH_AbsoluteX (const OpcDesc* D) unsigned Addr = GetCodeWord (PC+1); /* Generate a label in pass 1 */ - GenerateLabel (D, Addr); + GenerateLabel (D->Flags, Addr); /* Output the line */ - OneLine (D, "%s,x", GetAddrArg (D, Addr)); + OneLine (D, "%s,x", GetAddrArg (D->Flags, Addr)); } @@ -230,10 +237,10 @@ void OH_AbsoluteY (const OpcDesc* D) unsigned Addr = GetCodeWord (PC+1); /* Generate a label in pass 1 */ - GenerateLabel (D, Addr); + GenerateLabel (D->Flags, Addr); /* Output the line */ - OneLine (D, "%s,y", GetAddrArg (D, Addr)); + OneLine (D, "%s,y", GetAddrArg (D->Flags, Addr)); } @@ -261,10 +268,10 @@ void OH_Relative (const OpcDesc* D) unsigned Addr = (unsigned) (((int) PC+2) + Offs); /* Generate a label in pass 1 */ - GenerateLabel (D, Addr); + GenerateLabel (D->Flags, Addr); /* Output the line */ - OneLine (D, "%s", GetAddrArg (D, Addr)); + OneLine (D, "%s", GetAddrArg (D->Flags, Addr)); } @@ -282,10 +289,10 @@ void OH_DirectIndirect (const OpcDesc* D) unsigned Addr = GetCodeByte (PC+1); /* Generate a label in pass 1 */ - GenerateLabel (D, Addr); + GenerateLabel (D->Flags, Addr); /* Output the line */ - OneLine (D, "(%s)", GetAddrArg (D, Addr)); + OneLine (D, "(%s)", GetAddrArg (D->Flags, Addr)); } @@ -296,10 +303,10 @@ void OH_DirectIndirectY (const OpcDesc* D) unsigned Addr = GetCodeByte (PC+1); /* Generate a label in pass 1 */ - GenerateLabel (D, Addr); + GenerateLabel (D->Flags, Addr); /* Output the line */ - OneLine (D, "(%s),y", GetAddrArg (D, Addr)); + OneLine (D, "(%s),y", GetAddrArg (D->Flags, Addr)); } @@ -310,10 +317,10 @@ void OH_DirectXIndirect (const OpcDesc* D) unsigned Addr = GetCodeByte (PC+1); /* Generate a label in pass 1 */ - GenerateLabel (D, Addr); + GenerateLabel (D->Flags, Addr); /* Output the line */ - OneLine (D, "(%s,x)", GetAddrArg (D, Addr)); + OneLine (D, "(%s,x)", GetAddrArg (D->Flags, Addr)); } @@ -324,10 +331,33 @@ void OH_AbsoluteIndirect (const OpcDesc* D) unsigned Addr = GetCodeWord (PC+1); /* Generate a label in pass 1 */ - GenerateLabel (D, Addr); + GenerateLabel (D->Flags, Addr); + + /* Output the line */ + OneLine (D, "(%s)", GetAddrArg (D->Flags, Addr)); +} + + + +void OH_BitBranch (const OpcDesc* D) +{ + /* Get the operands */ + unsigned char TestAddr = GetCodeByte (PC+1); + signed char BranchOffs = GetCodeByte (PC+2); + + /* Calculate the target address for the branch */ + unsigned BranchAddr = (unsigned) (((int) PC+3) + BranchOffs); + + /* Generate labels in pass 1. The bit branch codes are special in that + * they don't really match the remainder of the 6502 instruction set (they + * are a Rockwell addon), so we must pass additional flags as direct + * value to the second GenerateLabel call. + */ + GenerateLabel (D->Flags, TestAddr); + GenerateLabel (flLabel, BranchAddr); /* Output the line */ - OneLine (D, "(%s)", GetAddrArg (D, Addr)); + OneLine (D, "%s,%s", GetAddrArg (D->Flags, TestAddr), GetAddrArg (flLabel, BranchAddr)); } diff --git a/src/da65/handler.h b/src/da65/handler.h index 4c265ee85..33589078b 100644 --- a/src/da65/handler.h +++ b/src/da65/handler.h @@ -38,17 +38,22 @@ +/* common */ +#include "attrib.h" + +/* da65 */ #include "opctable.h" /*****************************************************************************/ -/* Code */ +/* Code */ /*****************************************************************************/ /* Generic handlers */ +void OH_Illegal (const OpcDesc* D attribute ((unused))); void OH_Accumulator (const OpcDesc*); void OH_Implicit (const OpcDesc*); void OH_Immidiate (const OpcDesc*); @@ -67,6 +72,8 @@ void OH_DirectIndirectY (const OpcDesc*); void OH_DirectXIndirect (const OpcDesc*); void OH_AbsoluteIndirect (const OpcDesc*); +void OH_BitBranch (const OpcDesc*); + void OH_StackRelative (const OpcDesc*); void OH_DirectIndirectLongX (const OpcDesc*); void OH_StackRelativeIndirectY (const OpcDesc*); diff --git a/src/da65/main.c b/src/da65/main.c index 9fe9cedca..0a9e0bcd9 100644 --- a/src/da65/main.c +++ b/src/da65/main.c @@ -222,7 +222,7 @@ static void OneOpcode (unsigned RemainingBytes) if (GetStyleAttr (PC) == atDefault) { if (D->Size > RemainingBytes) { MarkAddr (PC, atIllegal); - } else if ((D->CPU & CPU) != CPU) { + } else if (D->Flags & flIllegal) { MarkAddr (PC, atIllegal); } else { unsigned I; diff --git a/src/da65/opc6502.c b/src/da65/opc6502.c index 129b596f8..76b8139c7 100644 --- a/src/da65/opc6502.c +++ b/src/da65/opc6502.c @@ -40,269 +40,269 @@ /*****************************************************************************/ -/* Data */ +/* Data */ /*****************************************************************************/ /* Descriptions for all opcodes */ const OpcDesc OpcTable_6502[256] = { - { "brk", 1, 0, CPU_6502, OH_Implicit }, /* $00 */ - { "ora", 2, lfUseLabel, CPU_6502, OH_DirectXIndirect }, /* $01 */ - { "cop", 2, 0, CPU_65816, OH_Implicit }, /* $02 */ - { "ora", 2, 0, CPU_65816, OH_StackRelative }, /* $03 */ - { "tsb", 2, lfUseLabel, CPU_65816, OH_Direct }, /* $04 */ - { "ora", 2, lfUseLabel, CPU_6502, OH_Direct }, /* $05 */ - { "asl", 2, lfUseLabel, CPU_6502, OH_Direct }, /* $06 */ - { "ora", 2, lfUseLabel, CPU_65816, OH_DirectIndirectLong }, /* $07 */ - { "php", 1, 0, CPU_6502, OH_Implicit }, /* $08 */ - { "ora", 2, 0, CPU_6502, OH_Immidiate }, /* $09 */ - { "asl", 1, 0, CPU_6502, OH_Accumulator }, /* $0a */ - { "phd", 1, 0, CPU_65816, OH_Implicit }, /* $0b */ - { "tsb", 3, lfUseLabel, CPU_65816, OH_Absolute }, /* $0c */ - { "ora", 3, lfUseLabel, CPU_6502, OH_Absolute }, /* $0d */ - { "asl", 3, lfUseLabel, CPU_6502, OH_Absolute }, /* $0e */ - { "ora", 4, lfUseLabel, CPU_65816, OH_AbsoluteLong }, /* $0f */ - { "bpl", 2, lfLabel, CPU_6502, OH_Relative }, /* $10 */ - { "ora", 2, lfUseLabel, CPU_6502, OH_DirectIndirectY }, /* $11 */ - { "ora", 2, lfUseLabel, CPU_65816, OH_DirectIndirect }, /* $12 */ - { "ora", 2, 0, CPU_65816, OH_StackRelativeIndirectY}, /* $13 */ - { "trb", 2, lfUseLabel, CPU_65816, OH_Direct }, /* $14 */ - { "ora", 2, lfUseLabel, CPU_6502, OH_DirectX }, /* $15 */ - { "asl", 2, lfUseLabel, CPU_6502, OH_DirectX }, /* $16 */ - { "ora", 2, lfUseLabel, CPU_65816, OH_DirectIndirectLongY }, /* $17 */ - { "clc", 1, 0, CPU_6502, OH_Implicit }, /* $18 */ - { "ora", 3, lfUseLabel, CPU_6502, OH_AbsoluteY }, /* $19 */ - { "inc", 1, 0, CPU_65816, OH_Accumulator }, /* $1a */ - { "tcs", 1, 0, CPU_65816, OH_Implicit }, /* $1b */ - { "trb", 3, lfUseLabel, CPU_65816, OH_Absolute }, /* $1c */ - { "ora", 3, lfUseLabel, CPU_6502, OH_AbsoluteX }, /* $1d */ - { "asl", 3, lfUseLabel, CPU_6502, OH_AbsoluteX }, /* $1e */ - { "ora", 4, lfUseLabel, CPU_65816, OH_AbsoluteLongX }, /* $1f */ - { "jsr", 3, lfLabel, CPU_6502, OH_Absolute }, /* $20 */ - { "and", 2, lfUseLabel, CPU_6502, OH_DirectXIndirect }, /* $21 */ - { "jsl", 3, lfLabel, CPU_65816, OH_AbsoluteLong }, /* $22 */ - { "and", 2, 0, CPU_65816, OH_StackRelative }, /* $23 */ - { "bit", 2, lfUseLabel, CPU_6502, OH_Direct }, /* $24 */ - { "and", 2, lfUseLabel, CPU_6502, OH_Direct }, /* $25 */ - { "rol", 2, lfUseLabel, CPU_6502, OH_Direct }, /* $26 */ - { "and", 2, lfUseLabel, CPU_65816, OH_DirectIndirectLong }, /* $27 */ - { "plp", 1, 0, CPU_6502, OH_Implicit }, /* $28 */ - { "and", 2, 0, CPU_6502, OH_Immidiate }, /* $29 */ - { "rol", 1, 0, CPU_6502, OH_Accumulator }, /* $2a */ - { "pld", 1, 0, CPU_65816, OH_Implicit }, /* $2b */ - { "bit", 3, lfUseLabel, CPU_6502, OH_Absolute }, /* $2c */ - { "and", 3, lfUseLabel, CPU_6502, OH_Absolute }, /* $2d */ - { "rol", 3, lfUseLabel, CPU_6502, OH_Absolute }, /* $2e */ - { "and", 4, lfUseLabel, CPU_65816, OH_AbsoluteLong }, /* $2f */ - { "bmi", 2, lfLabel, CPU_6502, OH_Relative }, /* $30 */ - { "and", 2, lfUseLabel, CPU_6502, OH_DirectIndirectY }, /* $31 */ - { "and", 2, lfUseLabel, CPU_65816, OH_DirectIndirect }, /* $32 */ - { "and", 2, 0, CPU_65816, OH_StackRelativeIndirectY}, /* $33 */ - { "bit", 2, lfUseLabel, CPU_65816, OH_DirectX }, /* $34 */ - { "and", 2, lfUseLabel, CPU_6502, OH_DirectX }, /* $35 */ - { "rol", 2, lfUseLabel, CPU_6502, OH_DirectX }, /* $36 */ - { "and", 2, lfUseLabel, CPU_65816, OH_DirectIndirectLongY }, /* $37 */ - { "sec", 1, 0, CPU_6502, OH_Implicit }, /* $38 */ - { "and", 3, lfUseLabel, CPU_6502, OH_AbsoluteY }, /* $39 */ - { "dec", 1, 0, CPU_65816, OH_Accumulator }, /* $3a */ - { "tsc", 1, 0, CPU_65816, OH_Implicit }, /* $3b */ - { "bit", 3, lfUseLabel, CPU_65816, OH_AbsoluteX }, /* $3c */ - { "and", 3, lfUseLabel, CPU_6502, OH_AbsoluteX }, /* $3d */ - { "rol", 3, lfUseLabel, CPU_6502, OH_AbsoluteX }, /* $3e */ - { "and", 4, lfUseLabel, CPU_65816, OH_AbsoluteLongX }, /* $3f */ - { "rti", 1, 0, CPU_6502, OH_Rts }, /* $40 */ - { "eor", 2, lfUseLabel, CPU_6502, OH_DirectXIndirect }, /* $41 */ - { "wdm", 2, 0, CPU_65816, OH_Implicit }, /* $42 */ - { "eor", 2, 0, CPU_65816, OH_StackRelative }, /* $43 */ - { "mvp", 3, 0, CPU_65816, OH_BlockMove }, /* $44 */ - { "eor", 2, lfUseLabel, CPU_6502, OH_Direct }, /* $45 */ - { "lsr", 2, lfUseLabel, CPU_6502, OH_Direct }, /* $46 */ - { "eor", 2, lfUseLabel, CPU_65816, OH_DirectIndirectLong }, /* $47 */ - { "pha", 1, 0, CPU_6502, OH_Implicit }, /* $48 */ - { "eor", 2, 0, CPU_6502, OH_Immidiate }, /* $49 */ - { "lsr", 1, 0, CPU_6502, OH_Accumulator }, /* $4a */ - { "phk", 1, 0, CPU_65816, OH_Implicit }, /* $4b */ - { "jmp", 3, lfLabel, CPU_6502, OH_JmpAbsolute }, /* $4c */ - { "eor", 3, lfUseLabel, CPU_6502, OH_Absolute }, /* $4d */ - { "lsr", 3, lfUseLabel, CPU_6502, OH_Absolute }, /* $4e */ - { "eor", 4, lfUseLabel, CPU_65816, OH_AbsoluteLong }, /* $4f */ - { "bvc", 2, lfLabel, CPU_6502, OH_Relative }, /* $50 */ - { "eor", 2, lfUseLabel, CPU_6502, OH_DirectIndirectY }, /* $51 */ - { "eor", 2, lfUseLabel, CPU_65816, OH_DirectIndirect }, /* $52 */ - { "eor", 2, 0, CPU_65816, OH_StackRelativeIndirectY}, /* $53 */ - { "mvn", 3, 0, CPU_65816, OH_BlockMove }, /* $54 */ - { "eor", 2, lfUseLabel, CPU_6502, OH_DirectX }, /* $55 */ - { "lsr", 2, lfUseLabel, CPU_6502, OH_DirectX }, /* $56 */ - { "eor", 2, lfUseLabel, CPU_65816, OH_DirectIndirectLongY }, /* $57 */ - { "cli", 1, 0, CPU_6502, OH_Implicit }, /* $58 */ - { "eor", 3, lfUseLabel, CPU_6502, OH_AbsoluteY }, /* $59 */ - { "phy", 1, 0, CPU_65816, OH_Implicit }, /* $5a */ - { "tcd", 1, 0, CPU_65816, OH_Implicit }, /* $5b */ - { "jml", 4, lfLabel, CPU_65816, OH_AbsoluteLong }, /* $5c */ - { "eor", 3, lfUseLabel, CPU_6502, OH_AbsoluteX }, /* $5d */ - { "lsr", 3, lfUseLabel, CPU_6502, OH_AbsoluteX }, /* $5e */ - { "eor", 4, lfUseLabel, CPU_65816, OH_AbsoluteLongX }, /* $5f */ - { "rts", 1, 0, CPU_6502, OH_Rts }, /* $60 */ - { "adc", 2, lfUseLabel, CPU_6502, OH_DirectXIndirect }, /* $61 */ - { "per", 3, lfLabel, CPU_65816, OH_RelativeLong }, /* $62 */ - { "adc", 2, 0, CPU_65816, OH_StackRelative }, /* $63 */ - { "stz", 2, lfUseLabel, CPU_65816, OH_Direct }, /* $64 */ - { "adc", 2, lfUseLabel, CPU_6502, OH_Direct }, /* $65 */ - { "ror", 2, lfUseLabel, CPU_6502, OH_Direct }, /* $66 */ - { "adc", 2, lfUseLabel, CPU_65816, OH_DirectIndirectLong }, /* $67 */ - { "pla", 1, 0, CPU_6502, OH_Implicit }, /* $68 */ - { "adc", 2, 0, CPU_6502, OH_Immidiate }, /* $69 */ - { "ror", 1, 0, CPU_6502, OH_Accumulator }, /* $6a */ - { "rtl", 1, 0, CPU_65816, OH_Implicit }, /* $6b */ - { "jmp", 3, lfLabel, CPU_6502, OH_JmpAbsoluteIndirect }, /* $6c */ - { "adc", 3, lfUseLabel, CPU_6502, OH_Absolute }, /* $6d */ - { "ror", 3, lfUseLabel, CPU_6502, OH_Absolute }, /* $6e */ - { "adc", 4, lfUseLabel, CPU_65816, OH_AbsoluteLong }, /* $6f */ - { "bvs", 2, lfLabel, CPU_6502, OH_Relative }, /* $70 */ - { "adc", 2, lfUseLabel, CPU_6502, OH_DirectIndirectY }, /* $71 */ - { "adc", 2, lfUseLabel, CPU_65816, OH_DirectIndirect }, /* $72 */ - { "adc", 2, 0, CPU_65816, OH_StackRelativeIndirectY}, /* $73 */ - { "stz", 2, lfUseLabel, CPU_65816, OH_DirectX }, /* $74 */ - { "adc", 2, lfUseLabel, CPU_6502, OH_DirectX }, /* $75 */ - { "ror", 2, lfUseLabel, CPU_6502, OH_DirectX }, /* $76 */ - { "adc", 2, lfUseLabel, CPU_65816, OH_DirectIndirectLongY }, /* $77 */ - { "sei", 1, 0, CPU_6502, OH_Implicit }, /* $78 */ - { "adc", 3, lfUseLabel, CPU_6502, OH_AbsoluteY }, /* $79 */ - { "ply", 1, 0, CPU_65816, OH_Implicit }, /* $7a */ - { "tdc", 1, 0, CPU_65816, OH_Implicit }, /* $7b */ - { "jmp", 3, lfLabel, CPU_65816, OH_AbsoluteXIndirect }, /* $7c */ - { "adc", 3, lfUseLabel, CPU_6502, OH_AbsoluteX }, /* $7d */ - { "ror", 3, lfUseLabel, CPU_6502, OH_AbsoluteX }, /* $7e */ - { "adc", 4, lfUseLabel, CPU_65816, OH_AbsoluteLongX }, /* $7f */ - { "bra", 2, lfLabel, CPU_65816, OH_Relative }, /* $80 */ - { "sta", 2, lfUseLabel, CPU_6502, OH_DirectXIndirect }, /* $81 */ - { "brl", 3, lfLabel, CPU_65816, OH_RelativeLong }, /* $82 */ - { "sta", 2, 0, CPU_65816, OH_StackRelative }, /* $83 */ - { "sty", 2, lfUseLabel, CPU_6502, OH_Direct }, /* $84 */ - { "sta", 2, lfUseLabel, CPU_6502, OH_Direct }, /* $85 */ - { "stx", 2, lfUseLabel, CPU_6502, OH_Direct }, /* $86 */ - { "sta", 2, lfUseLabel, CPU_65816, OH_DirectIndirectLong }, /* $87 */ - { "dey", 1, 0, CPU_6502, OH_Implicit }, /* $88 */ - { "bit", 2, 0, CPU_65816, OH_Immidiate }, /* $89 */ - { "txa", 1, 0, CPU_6502, OH_Implicit }, /* $8a */ - { "phb", 1, 0, CPU_65816, OH_Implicit }, /* $8b */ - { "sty", 3, lfUseLabel, CPU_6502, OH_Absolute }, /* $8c */ - { "sta", 3, lfUseLabel, CPU_6502, OH_Absolute }, /* $8d */ - { "stx", 3, lfUseLabel, CPU_6502, OH_Absolute }, /* $8e */ - { "sta", 4, lfUseLabel, CPU_65816, OH_AbsoluteLong }, /* $8f */ - { "bcc", 2, lfLabel, CPU_6502, OH_Relative }, /* $90 */ - { "sta", 2, lfUseLabel, CPU_6502, OH_DirectIndirectY }, /* $91 */ - { "sta", 2, lfUseLabel, CPU_65816, OH_DirectIndirect }, /* $92 */ - { "sta", 2, 0, CPU_65816, OH_StackRelativeIndirectY}, /* $93 */ - { "sty", 2, lfUseLabel, CPU_6502, OH_DirectX }, /* $94 */ - { "sta", 2, lfUseLabel, CPU_6502, OH_DirectX }, /* $95 */ - { "stx", 2, lfUseLabel, CPU_6502, OH_DirectY }, /* $96 */ - { "sta", 2, lfUseLabel, CPU_65816, OH_DirectIndirectLongY }, /* $97 */ - { "tya", 1, 0, CPU_6502, OH_Implicit }, /* $98 */ - { "sta", 3, lfUseLabel, CPU_6502, OH_AbsoluteY }, /* $99 */ - { "txs", 1, 0, CPU_6502, OH_Implicit }, /* $9a */ - { "txy", 1, 0, CPU_65816, OH_Implicit }, /* $9b */ - { "stz", 3, lfUseLabel, CPU_65816, OH_Absolute }, /* $9c */ - { "sta", 3, lfUseLabel, CPU_6502, OH_AbsoluteX }, /* $9d */ - { "stz", 3, lfUseLabel, CPU_65816, OH_AbsoluteX }, /* $9e */ - { "sta", 4, lfUseLabel, CPU_65816, OH_AbsoluteLongX }, /* $9f */ - { "ldy", 2, 0, CPU_6502, OH_Immidiate }, /* $a0 */ - { "lda", 2, lfUseLabel, CPU_6502, OH_DirectXIndirect }, /* $a1 */ - { "ldx", 2, 0, CPU_6502, OH_Immidiate }, /* $a2 */ - { "lda", 2, 0, CPU_65816, OH_StackRelative }, /* $a3 */ - { "ldy", 2, lfUseLabel, CPU_6502, OH_Direct }, /* $a4 */ - { "lda", 2, lfUseLabel, CPU_6502, OH_Direct }, /* $a5 */ - { "ldx", 2, lfUseLabel, CPU_6502, OH_Direct }, /* $a6 */ - { "lda", 2, lfUseLabel, CPU_65816, OH_DirectIndirectLong }, /* $a7 */ - { "tay", 1, 0, CPU_6502, OH_Implicit }, /* $a8 */ - { "lda", 2, 0, CPU_6502, OH_Immidiate }, /* $a9 */ - { "tax", 1, 0, CPU_6502, OH_Implicit }, /* $aa */ - { "plb", 1, 0, CPU_65816, OH_Implicit }, /* $ab */ - { "ldy", 3, lfUseLabel, CPU_6502, OH_Absolute }, /* $ac */ - { "lda", 3, lfUseLabel, CPU_6502, OH_Absolute }, /* $ad */ - { "ldx", 3, lfUseLabel, CPU_6502, OH_Absolute }, /* $ae */ - { "lda", 4, lfUseLabel, CPU_65816, OH_AbsoluteLong }, /* $af */ - { "bcs", 2, lfLabel, CPU_6502, OH_Relative }, /* $b0 */ - { "lda", 2, lfUseLabel, CPU_6502, OH_DirectIndirectY }, /* $b1 */ - { "lda", 2, lfUseLabel, CPU_65816, OH_DirectIndirect }, /* $b2 */ - { "lda", 2, 0, CPU_65816, OH_StackRelativeIndirectY}, /* $b3 */ - { "ldy", 2, lfUseLabel, CPU_6502, OH_DirectX }, /* $b4 */ - { "lda", 2, lfUseLabel, CPU_6502, OH_DirectX }, /* $b5 */ - { "ldx", 2, lfUseLabel, CPU_6502, OH_DirectY }, /* $b6 */ - { "lda", 2, lfUseLabel, CPU_65816, OH_DirectIndirectLongY }, /* $b7 */ - { "clv", 1, 0, CPU_6502, OH_Implicit }, /* $b8 */ - { "lda", 3, lfUseLabel, CPU_6502, OH_AbsoluteY }, /* $b9 */ - { "tsx", 1, 0, CPU_6502, OH_Implicit }, /* $ba */ - { "tyx", 1, 0, CPU_65816, OH_Implicit }, /* $bb */ - { "ldy", 3, lfUseLabel, CPU_6502, OH_AbsoluteX }, /* $bc */ - { "lda", 3, lfUseLabel, CPU_6502, OH_AbsoluteX }, /* $bd */ - { "ldx", 3, lfUseLabel, CPU_6502, OH_AbsoluteY }, /* $be */ - { "lda", 4, lfUseLabel, CPU_65816, OH_AbsoluteLongX }, /* $bf */ - { "cpy", 2, 0, CPU_6502, OH_Immidiate }, /* $c0 */ - { "cmp", 2, lfUseLabel, CPU_6502, OH_DirectXIndirect }, /* $c1 */ - { "rep", 2, 0, CPU_65816, OH_Immidiate }, /* $c2 */ - { "cmp", 2, 0, CPU_65816, OH_StackRelative }, /* $c3 */ - { "cpy", 2, lfUseLabel, CPU_6502, OH_Direct }, /* $c4 */ - { "cmp", 2, lfUseLabel, CPU_6502, OH_Direct }, /* $c5 */ - { "dec", 2, lfUseLabel, CPU_6502, OH_Direct }, /* $c6 */ - { "cmp", 2, lfUseLabel, CPU_65816, OH_DirectIndirectLong }, /* $c7 */ - { "iny", 1, 0, CPU_6502, OH_Implicit }, /* $c8 */ - { "cmp", 2, 0, CPU_6502, OH_Immidiate }, /* $c9 */ - { "dex", 1, 0, CPU_6502, OH_Implicit }, /* $ca */ - { "wai", 1, 0, CPU_65816, OH_Implicit }, /* $cb */ - { "cpy", 3, lfUseLabel, CPU_6502, OH_Absolute }, /* $cc */ - { "cmp", 3, lfUseLabel, CPU_6502, OH_Absolute }, /* $cd */ - { "dec", 3, lfUseLabel, CPU_6502, OH_Absolute }, /* $ce */ - { "cmp", 4, lfUseLabel, CPU_65816, OH_AbsoluteLong }, /* $cf */ - { "bne", 2, lfLabel, CPU_6502, OH_Relative }, /* $d0 */ - { "cmp", 2, lfUseLabel, CPU_6502, OH_DirectXIndirect }, /* $d1 */ - { "cmp", 2, lfUseLabel, CPU_65816, OH_DirectIndirect }, /* $d2 */ - { "cmp", 2, 0, CPU_65816, OH_StackRelativeIndirectY}, /* $d3 */ - { "pei", 2, lfUseLabel, CPU_65816, OH_Direct }, /* $d4 */ - { "cmp", 2, lfUseLabel, CPU_6502, OH_DirectX }, /* $d5 */ - { "dec", 2, lfUseLabel, CPU_6502, OH_DirectX }, /* $d6 */ - { "cmp", 2, lfUseLabel, CPU_65816, OH_DirectIndirectLongY }, /* $d7 */ - { "cld", 1, 0, CPU_6502, OH_Implicit }, /* $d8 */ - { "cmp", 3, lfUseLabel, CPU_6502, OH_AbsoluteY }, /* $d9 */ - { "phx", 1, 0, CPU_65816, OH_Implicit }, /* $da */ - { "stp", 1, 0, CPU_65816, OH_Implicit }, /* $db */ - { "jml", 3, lfLabel, CPU_65816, OH_AbsoluteIndirect }, /* $dc */ - { "cmp", 3, lfUseLabel, CPU_6502, OH_AbsoluteX }, /* $dd */ - { "dec", 3, lfUseLabel, CPU_6502, OH_AbsoluteX }, /* $de */ - { "cmp", 4, lfUseLabel, CPU_65816, OH_AbsoluteLongX }, /* $df */ - { "cpx", 2, 0, CPU_6502, OH_Immidiate }, /* $e0 */ - { "sbc", 2, lfUseLabel, CPU_6502, OH_DirectXIndirect }, /* $e1 */ - { "sep", 2, 0, CPU_65816, OH_Immidiate }, /* $e2 */ - { "sbc", 2, 0, CPU_65816, OH_StackRelative }, /* $e3 */ - { "cpx", 2, lfUseLabel, CPU_6502, OH_Direct }, /* $e4 */ - { "sbc", 2, lfUseLabel, CPU_6502, OH_Direct }, /* $e5 */ - { "inc", 2, lfUseLabel, CPU_6502, OH_Direct }, /* $e6 */ - { "sbc", 2, lfUseLabel, CPU_65816, OH_DirectIndirectLong }, /* $e7 */ - { "inx", 1, 0, CPU_6502, OH_Implicit }, /* $e8 */ - { "sbc", 2, 0, CPU_6502, OH_Immidiate }, /* $e9 */ - { "nop", 1, 0, CPU_6502, OH_Implicit }, /* $ea */ - { "xba", 1, 0, CPU_65816, OH_Implicit }, /* $eb */ - { "cpx", 3, lfUseLabel, CPU_6502, OH_Absolute }, /* $ec */ - { "sbc", 3, lfUseLabel, CPU_6502, OH_Absolute }, /* $ed */ - { "inc", 3, lfUseLabel, CPU_6502, OH_Absolute }, /* $ee */ - { "sbc", 4, lfUseLabel, CPU_65816, OH_AbsoluteLong }, /* $ef */ - { "beq", 2, lfLabel, CPU_6502, OH_Relative }, /* $f0 */ - { "sbc", 2, lfUseLabel, CPU_6502, OH_DirectIndirectY }, /* $f1 */ - { "sbc", 2, lfUseLabel, CPU_65816, OH_DirectIndirect }, /* $f2 */ - { "sbc", 2, 0, CPU_65816, OH_StackRelativeIndirectY}, /* $f3 */ - { "pea", 3, lfUseLabel, CPU_65816, OH_Absolute }, /* $f4 */ - { "sbc", 2, lfUseLabel, CPU_6502, OH_DirectX }, /* $f5 */ - { "inc", 2, lfUseLabel, CPU_6502, OH_DirectX }, /* $f6 */ - { "sbc", 2, lfUseLabel, CPU_65816, OH_DirectIndirectLongY }, /* $f7 */ - { "sed", 1, 0, CPU_6502, OH_Implicit }, /* $f8 */ - { "sbc", 3, lfUseLabel, CPU_6502, OH_AbsoluteY }, /* $f9 */ - { "plx", 1, 0, CPU_65816, OH_Implicit }, /* $fa */ - { "xce", 1, 0, CPU_65816, OH_Implicit }, /* $fb */ - { "jsr", 3, lfLabel, CPU_65816, OH_AbsoluteXIndirect }, /* $fc */ - { "sbc", 3, lfUseLabel, CPU_6502, OH_AbsoluteX }, /* $fd */ - { "inc", 3, lfUseLabel, CPU_6502, OH_AbsoluteX }, /* $fe */ - { "sbc", 4, lfUseLabel, CPU_65816, OH_AbsoluteLongX }, /* $ff */ + { "brk", 1, flNone, OH_Implicit }, /* $00 */ + { "ora", 2, flUseLabel, OH_DirectXIndirect }, /* $01 */ + { "", 1, flIllegal, OH_Illegal, }, /* $02 */ + { "", 1, flIllegal, OH_Illegal, }, /* $03 */ + { "", 1, flIllegal, OH_Illegal, }, /* $04 */ + { "ora", 2, flUseLabel, OH_Direct }, /* $05 */ + { "asl", 2, flUseLabel, OH_Direct }, /* $06 */ + { "", 1, flIllegal, OH_Illegal, }, /* $07 */ + { "php", 1, flNone, OH_Implicit }, /* $08 */ + { "ora", 2, flNone, OH_Immidiate }, /* $09 */ + { "asl", 1, flNone, OH_Accumulator }, /* $0a */ + { "", 1, flIllegal, OH_Illegal, }, /* $0b */ + { "", 1, flIllegal, OH_Illegal, }, /* $0c */ + { "ora", 3, flUseLabel, OH_Absolute }, /* $0d */ + { "asl", 3, flUseLabel, OH_Absolute }, /* $0e */ + { "", 1, flIllegal, OH_Illegal, }, /* $0f */ + { "bpl", 2, flLabel, OH_Relative }, /* $10 */ + { "ora", 2, flUseLabel, OH_DirectIndirectY }, /* $11 */ + { "", 1, flIllegal, OH_Illegal, }, /* $12 */ + { "", 1, flIllegal, OH_Illegal, }, /* $13 */ + { "", 1, flIllegal, OH_Illegal, }, /* $14 */ + { "ora", 2, flUseLabel, OH_DirectX }, /* $15 */ + { "asl", 2, flUseLabel, OH_DirectX }, /* $16 */ + { "", 1, flIllegal, OH_Illegal, }, /* $17 */ + { "clc", 1, flNone, OH_Implicit }, /* $18 */ + { "ora", 3, flUseLabel, OH_AbsoluteY }, /* $19 */ + { "", 1, flIllegal, OH_Illegal, }, /* $1a */ + { "", 1, flIllegal, OH_Illegal, }, /* $1b */ + { "", 1, flIllegal, OH_Illegal, }, /* $1c */ + { "ora", 3, flUseLabel, OH_AbsoluteX }, /* $1d */ + { "asl", 3, flUseLabel, OH_AbsoluteX }, /* $1e */ + { "", 1, flIllegal, OH_Illegal, }, /* $1f */ + { "jsr", 3, flLabel, OH_Absolute }, /* $20 */ + { "and", 2, flUseLabel, OH_DirectXIndirect }, /* $21 */ + { "", 1, flIllegal, OH_Illegal, }, /* $22 */ + { "", 1, flIllegal, OH_Illegal, }, /* $23 */ + { "bit", 2, flUseLabel, OH_Direct }, /* $24 */ + { "and", 2, flUseLabel, OH_Direct }, /* $25 */ + { "rol", 2, flUseLabel, OH_Direct }, /* $26 */ + { "", 1, flIllegal, OH_Illegal, }, /* $27 */ + { "plp", 1, flNone, OH_Implicit }, /* $28 */ + { "and", 2, flNone, OH_Immidiate }, /* $29 */ + { "rol", 1, flNone, OH_Accumulator }, /* $2a */ + { "", 1, flIllegal, OH_Illegal, }, /* $2b */ + { "bit", 3, flUseLabel, OH_Absolute }, /* $2c */ + { "and", 3, flUseLabel, OH_Absolute }, /* $2d */ + { "rol", 3, flUseLabel, OH_Absolute }, /* $2e */ + { "", 1, flIllegal, OH_Illegal, }, /* $2f */ + { "bmi", 2, flLabel, OH_Relative }, /* $30 */ + { "and", 2, flUseLabel, OH_DirectIndirectY }, /* $31 */ + { "", 1, flIllegal, OH_Illegal, }, /* $32 */ + { "", 1, flIllegal, OH_Illegal, }, /* $33 */ + { "", 1, flIllegal, OH_Illegal, }, /* $34 */ + { "and", 2, flUseLabel, OH_DirectX }, /* $35 */ + { "rol", 2, flUseLabel, OH_DirectX }, /* $36 */ + { "", 1, flIllegal, OH_Illegal, }, /* $37 */ + { "sec", 1, flNone, OH_Implicit }, /* $38 */ + { "and", 3, flUseLabel, OH_AbsoluteY }, /* $39 */ + { "", 1, flIllegal, OH_Illegal, }, /* $3a */ + { "", 1, flIllegal, OH_Illegal, }, /* $3b */ + { "", 1, flIllegal, OH_Illegal, }, /* $3c */ + { "and", 3, flUseLabel, OH_AbsoluteX }, /* $3d */ + { "rol", 3, flUseLabel, OH_AbsoluteX }, /* $3e */ + { "", 1, flIllegal, OH_Illegal, }, /* $3f */ + { "rti", 1, flNone, OH_Rts }, /* $40 */ + { "eor", 2, flUseLabel, OH_DirectXIndirect }, /* $41 */ + { "", 1, flIllegal, OH_Illegal, }, /* $42 */ + { "", 1, flIllegal, OH_Illegal, }, /* $43 */ + { "", 1, flIllegal, OH_Illegal, }, /* $44 */ + { "eor", 2, flUseLabel, OH_Direct }, /* $45 */ + { "lsr", 2, flUseLabel, OH_Direct }, /* $46 */ + { "", 1, flIllegal, OH_Illegal, }, /* $47 */ + { "pha", 1, flNone, OH_Implicit }, /* $48 */ + { "eor", 2, flNone, OH_Immidiate }, /* $49 */ + { "lsr", 1, flNone, OH_Accumulator }, /* $4a */ + { "", 1, flIllegal, OH_Illegal, }, /* $4b */ + { "jmp", 3, flLabel, OH_JmpAbsolute }, /* $4c */ + { "eor", 3, flUseLabel, OH_Absolute }, /* $4d */ + { "lsr", 3, flUseLabel, OH_Absolute }, /* $4e */ + { "", 1, flIllegal, OH_Illegal, }, /* $4f */ + { "bvc", 2, flLabel, OH_Relative }, /* $50 */ + { "eor", 2, flUseLabel, OH_DirectIndirectY }, /* $51 */ + { "", 1, flIllegal, OH_Illegal, }, /* $52 */ + { "", 1, flIllegal, OH_Illegal, }, /* $53 */ + { "", 1, flIllegal, OH_Illegal, }, /* $54 */ + { "eor", 2, flUseLabel, OH_DirectX }, /* $55 */ + { "lsr", 2, flUseLabel, OH_DirectX }, /* $56 */ + { "", 1, flIllegal, OH_Illegal, }, /* $57 */ + { "cli", 1, flNone, OH_Implicit }, /* $58 */ + { "eor", 3, flUseLabel, OH_AbsoluteY }, /* $59 */ + { "", 1, flIllegal, OH_Illegal, }, /* $5a */ + { "", 1, flIllegal, OH_Illegal, }, /* $5b */ + { "", 1, flIllegal, OH_Illegal, }, /* $5c */ + { "eor", 3, flUseLabel, OH_AbsoluteX }, /* $5d */ + { "lsr", 3, flUseLabel, OH_AbsoluteX }, /* $5e */ + { "", 1, flIllegal, OH_Illegal, }, /* $5f */ + { "rts", 1, flNone, OH_Rts }, /* $60 */ + { "adc", 2, flUseLabel, OH_DirectXIndirect }, /* $61 */ + { "", 1, flIllegal, OH_Illegal, }, /* $62 */ + { "", 1, flIllegal, OH_Illegal, }, /* $63 */ + { "", 1, flIllegal, OH_Illegal, }, /* $64 */ + { "adc", 2, flUseLabel, OH_Direct }, /* $65 */ + { "ror", 2, flUseLabel, OH_Direct }, /* $66 */ + { "", 1, flIllegal, OH_Illegal, }, /* $67 */ + { "pla", 1, flNone, OH_Implicit }, /* $68 */ + { "adc", 2, flNone, OH_Immidiate }, /* $69 */ + { "ror", 1, flNone, OH_Accumulator }, /* $6a */ + { "", 1, flIllegal, OH_Illegal, }, /* $6b */ + { "jmp", 3, flLabel, OH_JmpAbsoluteIndirect }, /* $6c */ + { "adc", 3, flUseLabel, OH_Absolute }, /* $6d */ + { "ror", 3, flUseLabel, OH_Absolute }, /* $6e */ + { "", 1, flIllegal, OH_Illegal, }, /* $6f */ + { "bvs", 2, flLabel, OH_Relative }, /* $70 */ + { "adc", 2, flUseLabel, OH_DirectIndirectY }, /* $71 */ + { "", 1, flIllegal, OH_Illegal, }, /* $72 */ + { "", 1, flIllegal, OH_Illegal, }, /* $73 */ + { "", 1, flIllegal, OH_Illegal, }, /* $74 */ + { "adc", 2, flUseLabel, OH_DirectX }, /* $75 */ + { "ror", 2, flUseLabel, OH_DirectX }, /* $76 */ + { "", 1, flIllegal, OH_Illegal, }, /* $77 */ + { "sei", 1, flNone, OH_Implicit }, /* $78 */ + { "adc", 3, flUseLabel, OH_AbsoluteY }, /* $79 */ + { "", 1, flIllegal, OH_Illegal, }, /* $7a */ + { "", 1, flIllegal, OH_Illegal, }, /* $7b */ + { "", 1, flIllegal, OH_Illegal, }, /* $7c */ + { "adc", 3, flUseLabel, OH_AbsoluteX }, /* $7d */ + { "ror", 3, flUseLabel, OH_AbsoluteX }, /* $7e */ + { "", 1, flIllegal, OH_Illegal, }, /* $7f */ + { "", 1, flIllegal, OH_Illegal, }, /* $80 */ + { "sta", 2, flUseLabel, OH_DirectXIndirect }, /* $81 */ + { "", 1, flIllegal, OH_Illegal, }, /* $82 */ + { "", 1, flIllegal, OH_Illegal, }, /* $83 */ + { "sty", 2, flUseLabel, OH_Direct }, /* $84 */ + { "sta", 2, flUseLabel, OH_Direct }, /* $85 */ + { "stx", 2, flUseLabel, OH_Direct }, /* $86 */ + { "", 1, flIllegal, OH_Illegal, }, /* $87 */ + { "dey", 1, flNone, OH_Implicit }, /* $88 */ + { "", 1, flIllegal, OH_Illegal, }, /* $89 */ + { "txa", 1, flNone, OH_Implicit }, /* $8a */ + { "", 1, flIllegal, OH_Illegal, }, /* $8b */ + { "sty", 3, flUseLabel, OH_Absolute }, /* $8c */ + { "sta", 3, flUseLabel, OH_Absolute }, /* $8d */ + { "stx", 3, flUseLabel, OH_Absolute }, /* $8e */ + { "", 1, flIllegal, OH_Illegal, }, /* $8f */ + { "bcc", 2, flLabel, OH_Relative }, /* $90 */ + { "sta", 2, flUseLabel, OH_DirectIndirectY }, /* $91 */ + { "", 1, flIllegal, OH_Illegal, }, /* $92 */ + { "", 1, flIllegal, OH_Illegal, }, /* $93 */ + { "sty", 2, flUseLabel, OH_DirectX }, /* $94 */ + { "sta", 2, flUseLabel, OH_DirectX }, /* $95 */ + { "stx", 2, flUseLabel, OH_DirectY }, /* $96 */ + { "", 1, flIllegal, OH_Illegal, }, /* $97 */ + { "tya", 1, flNone, OH_Implicit }, /* $98 */ + { "sta", 3, flUseLabel, OH_AbsoluteY }, /* $99 */ + { "txs", 1, flNone, OH_Implicit }, /* $9a */ + { "", 1, flIllegal, OH_Illegal, }, /* $9b */ + { "", 1, flIllegal, OH_Illegal, }, /* $9c */ + { "sta", 3, flUseLabel, OH_AbsoluteX }, /* $9d */ + { "", 1, flIllegal, OH_Illegal, }, /* $9e */ + { "", 1, flIllegal, OH_Illegal, }, /* $9f */ + { "ldy", 2, flNone, OH_Immidiate }, /* $a0 */ + { "lda", 2, flUseLabel, OH_DirectXIndirect }, /* $a1 */ + { "ldx", 2, flNone, OH_Immidiate }, /* $a2 */ + { "", 1, flIllegal, OH_Illegal, }, /* $a3 */ + { "ldy", 2, flUseLabel, OH_Direct }, /* $a4 */ + { "lda", 2, flUseLabel, OH_Direct }, /* $a5 */ + { "ldx", 2, flUseLabel, OH_Direct }, /* $a6 */ + { "", 1, flIllegal, OH_Illegal, }, /* $a7 */ + { "tay", 1, flNone, OH_Implicit }, /* $a8 */ + { "lda", 2, flNone, OH_Immidiate }, /* $a9 */ + { "tax", 1, flNone, OH_Implicit }, /* $aa */ + { "", 1, flIllegal, OH_Illegal, }, /* $ab */ + { "ldy", 3, flUseLabel, OH_Absolute }, /* $ac */ + { "lda", 3, flUseLabel, OH_Absolute }, /* $ad */ + { "ldx", 3, flUseLabel, OH_Absolute }, /* $ae */ + { "", 1, flIllegal, OH_Illegal, }, /* $af */ + { "bcs", 2, flLabel, OH_Relative }, /* $b0 */ + { "lda", 2, flUseLabel, OH_DirectIndirectY }, /* $b1 */ + { "", 1, flIllegal, OH_Illegal, }, /* $b2 */ + { "", 1, flIllegal, OH_Illegal, }, /* $b3 */ + { "ldy", 2, flUseLabel, OH_DirectX }, /* $b4 */ + { "lda", 2, flUseLabel, OH_DirectX }, /* $b5 */ + { "ldx", 2, flUseLabel, OH_DirectY }, /* $b6 */ + { "", 1, flIllegal, OH_Illegal, }, /* $b7 */ + { "clv", 1, flNone, OH_Implicit }, /* $b8 */ + { "lda", 3, flUseLabel, OH_AbsoluteY }, /* $b9 */ + { "tsx", 1, flNone, OH_Implicit }, /* $ba */ + { "", 1, flIllegal, OH_Illegal, }, /* $bb */ + { "ldy", 3, flUseLabel, OH_AbsoluteX }, /* $bc */ + { "lda", 3, flUseLabel, OH_AbsoluteX }, /* $bd */ + { "ldx", 3, flUseLabel, OH_AbsoluteY }, /* $be */ + { "", 1, flIllegal, OH_Illegal, }, /* $bf */ + { "cpy", 2, flNone, OH_Immidiate }, /* $c0 */ + { "cmp", 2, flUseLabel, OH_DirectXIndirect }, /* $c1 */ + { "", 1, flIllegal, OH_Illegal, }, /* $c2 */ + { "", 1, flIllegal, OH_Illegal, }, /* $c3 */ + { "cpy", 2, flUseLabel, OH_Direct }, /* $c4 */ + { "cmp", 2, flUseLabel, OH_Direct }, /* $c5 */ + { "dec", 2, flUseLabel, OH_Direct }, /* $c6 */ + { "", 1, flIllegal, OH_Illegal, }, /* $c7 */ + { "iny", 1, flNone, OH_Implicit }, /* $c8 */ + { "cmp", 2, flNone, OH_Immidiate }, /* $c9 */ + { "dex", 1, flNone, OH_Implicit }, /* $ca */ + { "", 1, flIllegal, OH_Illegal, }, /* $cb */ + { "cpy", 3, flUseLabel, OH_Absolute }, /* $cc */ + { "cmp", 3, flUseLabel, OH_Absolute }, /* $cd */ + { "dec", 3, flUseLabel, OH_Absolute }, /* $ce */ + { "", 1, flIllegal, OH_Illegal, }, /* $cf */ + { "bne", 2, flLabel, OH_Relative }, /* $d0 */ + { "cmp", 2, flUseLabel, OH_DirectXIndirect }, /* $d1 */ + { "", 1, flIllegal, OH_Illegal, }, /* $d2 */ + { "", 1, flIllegal, OH_Illegal, }, /* $d3 */ + { "pei", 2, flUseLabel, OH_Direct }, /* $d4 */ + { "cmp", 2, flUseLabel, OH_DirectX }, /* $d5 */ + { "dec", 2, flUseLabel, OH_DirectX }, /* $d6 */ + { "", 1, flIllegal, OH_Illegal, }, /* $d7 */ + { "cld", 1, flNone, OH_Implicit }, /* $d8 */ + { "cmp", 3, flUseLabel, OH_AbsoluteY }, /* $d9 */ + { "", 1, flIllegal, OH_Illegal, }, /* $da */ + { "", 1, flIllegal, OH_Illegal, }, /* $db */ + { "", 1, flIllegal, OH_Illegal, }, /* $dc */ + { "cmp", 3, flUseLabel, OH_AbsoluteX }, /* $dd */ + { "dec", 3, flUseLabel, OH_AbsoluteX }, /* $de */ + { "", 1, flIllegal, OH_Illegal, }, /* $df */ + { "cpx", 2, flNone, OH_Immidiate }, /* $e0 */ + { "sbc", 2, flUseLabel, OH_DirectXIndirect }, /* $e1 */ + { "", 1, flIllegal, OH_Illegal, }, /* $e2 */ + { "", 1, flIllegal, OH_Illegal, }, /* $e3 */ + { "cpx", 2, flUseLabel, OH_Direct }, /* $e4 */ + { "sbc", 2, flUseLabel, OH_Direct }, /* $e5 */ + { "inc", 2, flUseLabel, OH_Direct }, /* $e6 */ + { "", 1, flIllegal, OH_Illegal, }, /* $e7 */ + { "inx", 1, flNone, OH_Implicit }, /* $e8 */ + { "sbc", 2, flNone, OH_Immidiate }, /* $e9 */ + { "nop", 1, flNone, OH_Implicit }, /* $ea */ + { "", 1, flIllegal, OH_Illegal, }, /* $eb */ + { "cpx", 3, flUseLabel, OH_Absolute }, /* $ec */ + { "sbc", 3, flUseLabel, OH_Absolute }, /* $ed */ + { "inc", 3, flUseLabel, OH_Absolute }, /* $ee */ + { "", 1, flIllegal, OH_Illegal, }, /* $ef */ + { "beq", 2, flLabel, OH_Relative }, /* $f0 */ + { "sbc", 2, flUseLabel, OH_DirectIndirectY }, /* $f1 */ + { "", 1, flIllegal, OH_Illegal, }, /* $f2 */ + { "", 1, flIllegal, OH_Illegal, }, /* $f3 */ + { "", 1, flIllegal, OH_Illegal, }, /* $f4 */ + { "sbc", 2, flUseLabel, OH_DirectX }, /* $f5 */ + { "inc", 2, flUseLabel, OH_DirectX }, /* $f6 */ + { "", 1, flIllegal, OH_Illegal, }, /* $f7 */ + { "sed", 1, flNone, OH_Implicit }, /* $f8 */ + { "sbc", 3, flUseLabel, OH_AbsoluteY }, /* $f9 */ + { "", 1, flIllegal, OH_Illegal, }, /* $fa */ + { "", 1, flIllegal, OH_Illegal, }, /* $fb */ + { "", 1, flIllegal, OH_Illegal, }, /* $fc */ + { "sbc", 3, flUseLabel, OH_AbsoluteX }, /* $fd */ + { "inc", 3, flUseLabel, OH_AbsoluteX }, /* $fe */ + { "", 1, flIllegal, OH_Illegal, }, /* $ff */ }; diff --git a/src/da65/opc65816.c b/src/da65/opc65816.c index 309da81d6..c578cc9ab 100644 --- a/src/da65/opc65816.c +++ b/src/da65/opc65816.c @@ -47,262 +47,262 @@ /* Descriptions for all opcodes */ const OpcDesc OpcTable_65816[256] = { - { "brk", 1, 0, CPU_6502, OH_Implicit }, /* $00 */ - { "ora", 2, lfUseLabel, CPU_6502, OH_DirectXIndirect }, /* $01 */ - { "cop", 2, 0, CPU_65816, OH_Implicit }, /* $02 */ - { "ora", 2, 0, CPU_65816, OH_StackRelative }, /* $03 */ - { "tsb", 2, lfUseLabel, CPU_65816, OH_Direct }, /* $04 */ - { "ora", 2, lfUseLabel, CPU_6502, OH_Direct }, /* $05 */ - { "asl", 2, lfUseLabel, CPU_6502, OH_Direct }, /* $06 */ - { "ora", 2, lfUseLabel, CPU_65816, OH_DirectIndirectLong }, /* $07 */ - { "php", 1, 0, CPU_6502, OH_Implicit }, /* $08 */ - { "ora", 2, 0, CPU_6502, OH_Immidiate }, /* $09 */ - { "asl", 1, 0, CPU_6502, OH_Accumulator }, /* $0a */ - { "phd", 1, 0, CPU_65816, OH_Implicit }, /* $0b */ - { "tsb", 3, lfUseLabel, CPU_65816, OH_Absolute }, /* $0c */ - { "ora", 3, lfUseLabel, CPU_6502, OH_Absolute }, /* $0d */ - { "asl", 3, lfUseLabel, CPU_6502, OH_Absolute }, /* $0e */ - { "ora", 4, lfUseLabel, CPU_65816, OH_AbsoluteLong }, /* $0f */ - { "bpl", 2, lfLabel, CPU_6502, OH_Relative }, /* $10 */ - { "ora", 2, lfUseLabel, CPU_6502, OH_DirectIndirectY }, /* $11 */ - { "ora", 2, lfUseLabel, CPU_65816, OH_DirectIndirect }, /* $12 */ - { "ora", 2, 0, CPU_65816, OH_StackRelativeIndirectY}, /* $13 */ - { "trb", 2, lfUseLabel, CPU_65816, OH_Direct }, /* $14 */ - { "ora", 2, lfUseLabel, CPU_6502, OH_DirectX }, /* $15 */ - { "asl", 2, lfUseLabel, CPU_6502, OH_DirectX }, /* $16 */ - { "ora", 2, lfUseLabel, CPU_65816, OH_DirectIndirectLongY }, /* $17 */ - { "clc", 1, 0, CPU_6502, OH_Implicit }, /* $18 */ - { "ora", 3, lfUseLabel, CPU_6502, OH_AbsoluteY }, /* $19 */ - { "inc", 1, 0, CPU_65816, OH_Accumulator }, /* $1a */ - { "tcs", 1, 0, CPU_65816, OH_Implicit }, /* $1b */ - { "trb", 3, lfUseLabel, CPU_65816, OH_Absolute }, /* $1c */ - { "ora", 3, lfUseLabel, CPU_6502, OH_AbsoluteX }, /* $1d */ - { "asl", 3, lfUseLabel, CPU_6502, OH_AbsoluteX }, /* $1e */ - { "ora", 4, lfUseLabel, CPU_65816, OH_AbsoluteLongX }, /* $1f */ - { "jsr", 3, lfLabel, CPU_6502, OH_Absolute }, /* $20 */ - { "and", 2, lfUseLabel, CPU_6502, OH_DirectXIndirect }, /* $21 */ - { "jsl", 3, lfLabel, CPU_65816, OH_AbsoluteLong }, /* $22 */ - { "and", 2, 0, CPU_65816, OH_StackRelative }, /* $23 */ - { "bit", 2, lfUseLabel, CPU_6502, OH_Direct }, /* $24 */ - { "and", 2, lfUseLabel, CPU_6502, OH_Direct }, /* $25 */ - { "rol", 2, lfUseLabel, CPU_6502, OH_Direct }, /* $26 */ - { "and", 2, lfUseLabel, CPU_65816, OH_DirectIndirectLong }, /* $27 */ - { "plp", 1, 0, CPU_6502, OH_Implicit }, /* $28 */ - { "and", 2, 0, CPU_6502, OH_Immidiate }, /* $29 */ - { "rol", 1, 0, CPU_6502, OH_Accumulator }, /* $2a */ - { "pld", 1, 0, CPU_65816, OH_Implicit }, /* $2b */ - { "bit", 3, lfUseLabel, CPU_6502, OH_Absolute }, /* $2c */ - { "and", 3, lfUseLabel, CPU_6502, OH_Absolute }, /* $2d */ - { "rol", 3, lfUseLabel, CPU_6502, OH_Absolute }, /* $2e */ - { "and", 4, lfUseLabel, CPU_65816, OH_AbsoluteLong }, /* $2f */ - { "bmi", 2, lfLabel, CPU_6502, OH_Relative }, /* $30 */ - { "and", 2, lfUseLabel, CPU_6502, OH_DirectIndirectY }, /* $31 */ - { "and", 2, lfUseLabel, CPU_65816, OH_DirectIndirect }, /* $32 */ - { "and", 2, 0, CPU_65816, OH_StackRelativeIndirectY}, /* $33 */ - { "bit", 2, lfUseLabel, CPU_65816, OH_DirectX }, /* $34 */ - { "and", 2, lfUseLabel, CPU_6502, OH_DirectX }, /* $35 */ - { "rol", 2, lfUseLabel, CPU_6502, OH_DirectX }, /* $36 */ - { "and", 2, lfUseLabel, CPU_65816, OH_DirectIndirectLongY }, /* $37 */ - { "sec", 1, 0, CPU_6502, OH_Implicit }, /* $38 */ - { "and", 3, lfUseLabel, CPU_6502, OH_AbsoluteY }, /* $39 */ - { "dec", 1, 0, CPU_65816, OH_Accumulator }, /* $3a */ - { "tsc", 1, 0, CPU_65816, OH_Implicit }, /* $3b */ - { "bit", 3, lfUseLabel, CPU_65816, OH_AbsoluteX }, /* $3c */ - { "and", 3, lfUseLabel, CPU_6502, OH_AbsoluteX }, /* $3d */ - { "rol", 3, lfUseLabel, CPU_6502, OH_AbsoluteX }, /* $3e */ - { "and", 4, lfUseLabel, CPU_65816, OH_AbsoluteLongX }, /* $3f */ - { "rti", 1, 0, CPU_6502, OH_Rts }, /* $40 */ - { "eor", 2, lfUseLabel, CPU_6502, OH_DirectXIndirect }, /* $41 */ - { "wdm", 2, 0, CPU_65816, OH_Implicit }, /* $42 */ - { "eor", 2, 0, CPU_65816, OH_StackRelative }, /* $43 */ - { "mvp", 3, 0, CPU_65816, OH_BlockMove }, /* $44 */ - { "eor", 2, lfUseLabel, CPU_6502, OH_Direct }, /* $45 */ - { "lsr", 2, lfUseLabel, CPU_6502, OH_Direct }, /* $46 */ - { "eor", 2, lfUseLabel, CPU_65816, OH_DirectIndirectLong }, /* $47 */ - { "pha", 1, 0, CPU_6502, OH_Implicit }, /* $48 */ - { "eor", 2, 0, CPU_6502, OH_Immidiate }, /* $49 */ - { "lsr", 1, 0, CPU_6502, OH_Accumulator }, /* $4a */ - { "phk", 1, 0, CPU_65816, OH_Implicit }, /* $4b */ - { "jmp", 3, lfLabel, CPU_6502, OH_JmpAbsolute }, /* $4c */ - { "eor", 3, lfUseLabel, CPU_6502, OH_Absolute }, /* $4d */ - { "lsr", 3, lfUseLabel, CPU_6502, OH_Absolute }, /* $4e */ - { "eor", 4, lfUseLabel, CPU_65816, OH_AbsoluteLong }, /* $4f */ - { "bvc", 2, lfLabel, CPU_6502, OH_Relative }, /* $50 */ - { "eor", 2, lfUseLabel, CPU_6502, OH_DirectIndirectY }, /* $51 */ - { "eor", 2, lfUseLabel, CPU_65816, OH_DirectIndirect }, /* $52 */ - { "eor", 2, 0, CPU_65816, OH_StackRelativeIndirectY}, /* $53 */ - { "mvn", 3, 0, CPU_65816, OH_BlockMove }, /* $54 */ - { "eor", 2, lfUseLabel, CPU_6502, OH_DirectX }, /* $55 */ - { "lsr", 2, lfUseLabel, CPU_6502, OH_DirectX }, /* $56 */ - { "eor", 2, lfUseLabel, CPU_65816, OH_DirectIndirectLongY }, /* $57 */ - { "cli", 1, 0, CPU_6502, OH_Implicit }, /* $58 */ - { "eor", 3, lfUseLabel, CPU_6502, OH_AbsoluteY }, /* $59 */ - { "phy", 1, 0, CPU_65816, OH_Implicit }, /* $5a */ - { "tcd", 1, 0, CPU_65816, OH_Implicit }, /* $5b */ - { "jml", 4, lfLabel, CPU_65816, OH_AbsoluteLong }, /* $5c */ - { "eor", 3, lfUseLabel, CPU_6502, OH_AbsoluteX }, /* $5d */ - { "lsr", 3, lfUseLabel, CPU_6502, OH_AbsoluteX }, /* $5e */ - { "eor", 4, lfUseLabel, CPU_65816, OH_AbsoluteLongX }, /* $5f */ - { "rts", 1, 0, CPU_6502, OH_Rts }, /* $60 */ - { "adc", 2, lfUseLabel, CPU_6502, OH_DirectXIndirect }, /* $61 */ - { "per", 3, lfLabel, CPU_65816, OH_RelativeLong }, /* $62 */ - { "adc", 2, 0, CPU_65816, OH_StackRelative }, /* $63 */ - { "stz", 2, lfUseLabel, CPU_65816, OH_Direct }, /* $64 */ - { "adc", 2, lfUseLabel, CPU_6502, OH_Direct }, /* $65 */ - { "ror", 2, lfUseLabel, CPU_6502, OH_Direct }, /* $66 */ - { "adc", 2, lfUseLabel, CPU_65816, OH_DirectIndirectLong }, /* $67 */ - { "pla", 1, 0, CPU_6502, OH_Implicit }, /* $68 */ - { "adc", 2, 0, CPU_6502, OH_Immidiate }, /* $69 */ - { "ror", 1, 0, CPU_6502, OH_Accumulator }, /* $6a */ - { "rtl", 1, 0, CPU_65816, OH_Implicit }, /* $6b */ - { "jmp", 3, lfLabel, CPU_6502, OH_JmpAbsoluteIndirect }, /* $6c */ - { "adc", 3, lfUseLabel, CPU_6502, OH_Absolute }, /* $6d */ - { "ror", 3, lfUseLabel, CPU_6502, OH_Absolute }, /* $6e */ - { "adc", 4, lfUseLabel, CPU_65816, OH_AbsoluteLong }, /* $6f */ - { "bvs", 2, lfLabel, CPU_6502, OH_Relative }, /* $70 */ - { "adc", 2, lfUseLabel, CPU_6502, OH_DirectIndirectY }, /* $71 */ - { "adc", 2, lfUseLabel, CPU_65816, OH_DirectIndirect }, /* $72 */ - { "adc", 2, 0, CPU_65816, OH_StackRelativeIndirectY}, /* $73 */ - { "stz", 2, lfUseLabel, CPU_65816, OH_DirectX }, /* $74 */ - { "adc", 2, lfUseLabel, CPU_6502, OH_DirectX }, /* $75 */ - { "ror", 2, lfUseLabel, CPU_6502, OH_DirectX }, /* $76 */ - { "adc", 2, lfUseLabel, CPU_65816, OH_DirectIndirectLongY }, /* $77 */ - { "sei", 1, 0, CPU_6502, OH_Implicit }, /* $78 */ - { "adc", 3, lfUseLabel, CPU_6502, OH_AbsoluteY }, /* $79 */ - { "ply", 1, 0, CPU_65816, OH_Implicit }, /* $7a */ - { "tdc", 1, 0, CPU_65816, OH_Implicit }, /* $7b */ - { "jmp", 3, lfLabel, CPU_65816, OH_AbsoluteXIndirect }, /* $7c */ - { "adc", 3, lfUseLabel, CPU_6502, OH_AbsoluteX }, /* $7d */ - { "ror", 3, lfUseLabel, CPU_6502, OH_AbsoluteX }, /* $7e */ - { "adc", 4, lfUseLabel, CPU_65816, OH_AbsoluteLongX }, /* $7f */ - { "bra", 2, lfLabel, CPU_65816, OH_Relative }, /* $80 */ - { "sta", 2, lfUseLabel, CPU_6502, OH_DirectXIndirect }, /* $81 */ - { "brl", 3, lfLabel, CPU_65816, OH_RelativeLong }, /* $82 */ - { "sta", 2, 0, CPU_65816, OH_StackRelative }, /* $83 */ - { "sty", 2, lfUseLabel, CPU_6502, OH_Direct }, /* $84 */ - { "sta", 2, lfUseLabel, CPU_6502, OH_Direct }, /* $85 */ - { "stx", 2, lfUseLabel, CPU_6502, OH_Direct }, /* $86 */ - { "sta", 2, lfUseLabel, CPU_65816, OH_DirectIndirectLong }, /* $87 */ - { "dey", 1, 0, CPU_6502, OH_Implicit }, /* $88 */ - { "bit", 2, 0, CPU_65816, OH_Immidiate }, /* $89 */ - { "txa", 1, 0, CPU_6502, OH_Implicit }, /* $8a */ - { "phb", 1, 0, CPU_65816, OH_Implicit }, /* $8b */ - { "sty", 3, lfUseLabel, CPU_6502, OH_Absolute }, /* $8c */ - { "sta", 3, lfUseLabel, CPU_6502, OH_Absolute }, /* $8d */ - { "stx", 3, lfUseLabel, CPU_6502, OH_Absolute }, /* $8e */ - { "sta", 4, lfUseLabel, CPU_65816, OH_AbsoluteLong }, /* $8f */ - { "bcc", 2, lfLabel, CPU_6502, OH_Relative }, /* $90 */ - { "sta", 2, lfUseLabel, CPU_6502, OH_DirectIndirectY }, /* $91 */ - { "sta", 2, lfUseLabel, CPU_65816, OH_DirectIndirect }, /* $92 */ - { "sta", 2, 0, CPU_65816, OH_StackRelativeIndirectY}, /* $93 */ - { "sty", 2, lfUseLabel, CPU_6502, OH_DirectX }, /* $94 */ - { "sta", 2, lfUseLabel, CPU_6502, OH_DirectX }, /* $95 */ - { "stx", 2, lfUseLabel, CPU_6502, OH_DirectY }, /* $96 */ - { "sta", 2, lfUseLabel, CPU_65816, OH_DirectIndirectLongY }, /* $97 */ - { "tya", 1, 0, CPU_6502, OH_Implicit }, /* $98 */ - { "sta", 3, lfUseLabel, CPU_6502, OH_AbsoluteY }, /* $99 */ - { "txs", 1, 0, CPU_6502, OH_Implicit }, /* $9a */ - { "txy", 1, 0, CPU_65816, OH_Implicit }, /* $9b */ - { "stz", 3, lfUseLabel, CPU_65816, OH_Absolute }, /* $9c */ - { "sta", 3, lfUseLabel, CPU_6502, OH_AbsoluteX }, /* $9d */ - { "stz", 3, lfUseLabel, CPU_65816, OH_AbsoluteX }, /* $9e */ - { "sta", 4, lfUseLabel, CPU_65816, OH_AbsoluteLongX }, /* $9f */ - { "ldy", 2, 0, CPU_6502, OH_Immidiate }, /* $a0 */ - { "lda", 2, lfUseLabel, CPU_6502, OH_DirectXIndirect }, /* $a1 */ - { "ldx", 2, 0, CPU_6502, OH_Immidiate }, /* $a2 */ - { "lda", 2, 0, CPU_65816, OH_StackRelative }, /* $a3 */ - { "ldy", 2, lfUseLabel, CPU_6502, OH_Direct }, /* $a4 */ - { "lda", 2, lfUseLabel, CPU_6502, OH_Direct }, /* $a5 */ - { "ldx", 2, lfUseLabel, CPU_6502, OH_Direct }, /* $a6 */ - { "lda", 2, lfUseLabel, CPU_65816, OH_DirectIndirectLong }, /* $a7 */ - { "tay", 1, 0, CPU_6502, OH_Implicit }, /* $a8 */ - { "lda", 2, 0, CPU_6502, OH_Immidiate }, /* $a9 */ - { "tax", 1, 0, CPU_6502, OH_Implicit }, /* $aa */ - { "plb", 1, 0, CPU_65816, OH_Implicit }, /* $ab */ - { "ldy", 3, lfUseLabel, CPU_6502, OH_Absolute }, /* $ac */ - { "lda", 3, lfUseLabel, CPU_6502, OH_Absolute }, /* $ad */ - { "ldx", 3, lfUseLabel, CPU_6502, OH_Absolute }, /* $ae */ - { "lda", 4, lfUseLabel, CPU_65816, OH_AbsoluteLong }, /* $af */ - { "bcs", 2, lfLabel, CPU_6502, OH_Relative }, /* $b0 */ - { "lda", 2, lfUseLabel, CPU_6502, OH_DirectIndirectY }, /* $b1 */ - { "lda", 2, lfUseLabel, CPU_65816, OH_DirectIndirect }, /* $b2 */ - { "lda", 2, 0, CPU_65816, OH_StackRelativeIndirectY}, /* $b3 */ - { "ldy", 2, lfUseLabel, CPU_6502, OH_DirectX }, /* $b4 */ - { "lda", 2, lfUseLabel, CPU_6502, OH_DirectX }, /* $b5 */ - { "ldx", 2, lfUseLabel, CPU_6502, OH_DirectY }, /* $b6 */ - { "lda", 2, lfUseLabel, CPU_65816, OH_DirectIndirectLongY }, /* $b7 */ - { "clv", 1, 0, CPU_6502, OH_Implicit }, /* $b8 */ - { "lda", 3, lfUseLabel, CPU_6502, OH_AbsoluteY }, /* $b9 */ - { "tsx", 1, 0, CPU_6502, OH_Implicit }, /* $ba */ - { "tyx", 1, 0, CPU_65816, OH_Implicit }, /* $bb */ - { "ldy", 3, lfUseLabel, CPU_6502, OH_AbsoluteX }, /* $bc */ - { "lda", 3, lfUseLabel, CPU_6502, OH_AbsoluteX }, /* $bd */ - { "ldx", 3, lfUseLabel, CPU_6502, OH_AbsoluteY }, /* $be */ - { "lda", 4, lfUseLabel, CPU_65816, OH_AbsoluteLongX }, /* $bf */ - { "cpy", 2, 0, CPU_6502, OH_Immidiate }, /* $c0 */ - { "cmp", 2, lfUseLabel, CPU_6502, OH_DirectXIndirect }, /* $c1 */ - { "rep", 2, 0, CPU_65816, OH_Immidiate }, /* $c2 */ - { "cmp", 2, 0, CPU_65816, OH_StackRelative }, /* $c3 */ - { "cpy", 2, lfUseLabel, CPU_6502, OH_Direct }, /* $c4 */ - { "cmp", 2, lfUseLabel, CPU_6502, OH_Direct }, /* $c5 */ - { "dec", 2, lfUseLabel, CPU_6502, OH_Direct }, /* $c6 */ - { "cmp", 2, lfUseLabel, CPU_65816, OH_DirectIndirectLong }, /* $c7 */ - { "iny", 1, 0, CPU_6502, OH_Implicit }, /* $c8 */ - { "cmp", 2, 0, CPU_6502, OH_Immidiate }, /* $c9 */ - { "dex", 1, 0, CPU_6502, OH_Implicit }, /* $ca */ - { "wai", 1, 0, CPU_65816, OH_Implicit }, /* $cb */ - { "cpy", 3, lfUseLabel, CPU_6502, OH_Absolute }, /* $cc */ - { "cmp", 3, lfUseLabel, CPU_6502, OH_Absolute }, /* $cd */ - { "dec", 3, lfUseLabel, CPU_6502, OH_Absolute }, /* $ce */ - { "cmp", 4, lfUseLabel, CPU_65816, OH_AbsoluteLong }, /* $cf */ - { "bne", 2, lfLabel, CPU_6502, OH_Relative }, /* $d0 */ - { "cmp", 2, lfUseLabel, CPU_6502, OH_DirectXIndirect }, /* $d1 */ - { "cmp", 2, lfUseLabel, CPU_65816, OH_DirectIndirect }, /* $d2 */ - { "cmp", 2, 0, CPU_65816, OH_StackRelativeIndirectY}, /* $d3 */ - { "pei", 2, lfUseLabel, CPU_65816, OH_Direct }, /* $d4 */ - { "cmp", 2, lfUseLabel, CPU_6502, OH_DirectX }, /* $d5 */ - { "dec", 2, lfUseLabel, CPU_6502, OH_DirectX }, /* $d6 */ - { "cmp", 2, lfUseLabel, CPU_65816, OH_DirectIndirectLongY }, /* $d7 */ - { "cld", 1, 0, CPU_6502, OH_Implicit }, /* $d8 */ - { "cmp", 3, lfUseLabel, CPU_6502, OH_AbsoluteY }, /* $d9 */ - { "phx", 1, 0, CPU_65816, OH_Implicit }, /* $da */ - { "stp", 1, 0, CPU_65816, OH_Implicit }, /* $db */ - { "jml", 3, lfLabel, CPU_65816, OH_AbsoluteIndirect }, /* $dc */ - { "cmp", 3, lfUseLabel, CPU_6502, OH_AbsoluteX }, /* $dd */ - { "dec", 3, lfUseLabel, CPU_6502, OH_AbsoluteX }, /* $de */ - { "cmp", 4, lfUseLabel, CPU_65816, OH_AbsoluteLongX }, /* $df */ - { "cpx", 2, 0, CPU_6502, OH_Immidiate }, /* $e0 */ - { "sbc", 2, lfUseLabel, CPU_6502, OH_DirectXIndirect }, /* $e1 */ - { "sep", 2, 0, CPU_65816, OH_Immidiate }, /* $e2 */ - { "sbc", 2, 0, CPU_65816, OH_StackRelative }, /* $e3 */ - { "cpx", 2, lfUseLabel, CPU_6502, OH_Direct }, /* $e4 */ - { "sbc", 2, lfUseLabel, CPU_6502, OH_Direct }, /* $e5 */ - { "inc", 2, lfUseLabel, CPU_6502, OH_Direct }, /* $e6 */ - { "sbc", 2, lfUseLabel, CPU_65816, OH_DirectIndirectLong }, /* $e7 */ - { "inx", 1, 0, CPU_6502, OH_Implicit }, /* $e8 */ - { "sbc", 2, 0, CPU_6502, OH_Immidiate }, /* $e9 */ - { "nop", 1, 0, CPU_6502, OH_Implicit }, /* $ea */ - { "xba", 1, 0, CPU_65816, OH_Implicit }, /* $eb */ - { "cpx", 3, lfUseLabel, CPU_6502, OH_Absolute }, /* $ec */ - { "sbc", 3, lfUseLabel, CPU_6502, OH_Absolute }, /* $ed */ - { "inc", 3, lfUseLabel, CPU_6502, OH_Absolute }, /* $ee */ - { "sbc", 4, lfUseLabel, CPU_65816, OH_AbsoluteLong }, /* $ef */ - { "beq", 2, lfLabel, CPU_6502, OH_Relative }, /* $f0 */ - { "sbc", 2, lfUseLabel, CPU_6502, OH_DirectIndirectY }, /* $f1 */ - { "sbc", 2, lfUseLabel, CPU_65816, OH_DirectIndirect }, /* $f2 */ - { "sbc", 2, 0, CPU_65816, OH_StackRelativeIndirectY}, /* $f3 */ - { "pea", 3, lfUseLabel, CPU_65816, OH_Absolute }, /* $f4 */ - { "sbc", 2, lfUseLabel, CPU_6502, OH_DirectX }, /* $f5 */ - { "inc", 2, lfUseLabel, CPU_6502, OH_DirectX }, /* $f6 */ - { "sbc", 2, lfUseLabel, CPU_65816, OH_DirectIndirectLongY }, /* $f7 */ - { "sed", 1, 0, CPU_6502, OH_Implicit }, /* $f8 */ - { "sbc", 3, lfUseLabel, CPU_6502, OH_AbsoluteY }, /* $f9 */ - { "plx", 1, 0, CPU_65816, OH_Implicit }, /* $fa */ - { "xce", 1, 0, CPU_65816, OH_Implicit }, /* $fb */ - { "jsr", 3, lfLabel, CPU_65816, OH_AbsoluteXIndirect }, /* $fc */ - { "sbc", 3, lfUseLabel, CPU_6502, OH_AbsoluteX }, /* $fd */ - { "inc", 3, lfUseLabel, CPU_6502, OH_AbsoluteX }, /* $fe */ - { "sbc", 4, lfUseLabel, CPU_65816, OH_AbsoluteLongX }, /* $ff */ + { "brk", 1, flNone, OH_Implicit }, /* $00 */ + { "ora", 2, flUseLabel, OH_DirectXIndirect }, /* $01 */ + { "cop", 2, flNone, OH_Implicit }, /* $02 */ + { "ora", 2, flNone, OH_StackRelative }, /* $03 */ + { "tsb", 2, flUseLabel, OH_Direct }, /* $04 */ + { "ora", 2, flUseLabel, OH_Direct }, /* $05 */ + { "asl", 2, flUseLabel, OH_Direct }, /* $06 */ + { "ora", 2, flUseLabel, OH_DirectIndirectLong }, /* $07 */ + { "php", 1, flNone, OH_Implicit }, /* $08 */ + { "ora", 2, flNone, OH_Immidiate }, /* $09 */ + { "asl", 1, flNone, OH_Accumulator }, /* $0a */ + { "phd", 1, flNone, OH_Implicit }, /* $0b */ + { "tsb", 3, flUseLabel, OH_Absolute }, /* $0c */ + { "ora", 3, flUseLabel, OH_Absolute }, /* $0d */ + { "asl", 3, flUseLabel, OH_Absolute }, /* $0e */ + { "ora", 4, flUseLabel, OH_AbsoluteLong }, /* $0f */ + { "bpl", 2, flLabel, OH_Relative }, /* $10 */ + { "ora", 2, flUseLabel, OH_DirectIndirectY }, /* $11 */ + { "ora", 2, flUseLabel, OH_DirectIndirect }, /* $12 */ + { "ora", 2, flNone, OH_StackRelativeIndirectY}, /* $13 */ + { "trb", 2, flUseLabel, OH_Direct }, /* $14 */ + { "ora", 2, flUseLabel, OH_DirectX }, /* $15 */ + { "asl", 2, flUseLabel, OH_DirectX }, /* $16 */ + { "ora", 2, flUseLabel, OH_DirectIndirectLongY }, /* $17 */ + { "clc", 1, flNone, OH_Implicit }, /* $18 */ + { "ora", 3, flUseLabel, OH_AbsoluteY }, /* $19 */ + { "inc", 1, flNone, OH_Accumulator }, /* $1a */ + { "tcs", 1, flNone, OH_Implicit }, /* $1b */ + { "trb", 3, flUseLabel, OH_Absolute }, /* $1c */ + { "ora", 3, flUseLabel, OH_AbsoluteX }, /* $1d */ + { "asl", 3, flUseLabel, OH_AbsoluteX }, /* $1e */ + { "ora", 4, flUseLabel, OH_AbsoluteLongX }, /* $1f */ + { "jsr", 3, flLabel, OH_Absolute }, /* $20 */ + { "and", 2, flUseLabel, OH_DirectXIndirect }, /* $21 */ + { "jsl", 3, flLabel, OH_AbsoluteLong }, /* $22 */ + { "and", 2, flNone, OH_StackRelative }, /* $23 */ + { "bit", 2, flUseLabel, OH_Direct }, /* $24 */ + { "and", 2, flUseLabel, OH_Direct }, /* $25 */ + { "rol", 2, flUseLabel, OH_Direct }, /* $26 */ + { "and", 2, flUseLabel, OH_DirectIndirectLong }, /* $27 */ + { "plp", 1, flNone, OH_Implicit }, /* $28 */ + { "and", 2, flNone, OH_Immidiate }, /* $29 */ + { "rol", 1, flNone, OH_Accumulator }, /* $2a */ + { "pld", 1, flNone, OH_Implicit }, /* $2b */ + { "bit", 3, flUseLabel, OH_Absolute }, /* $2c */ + { "and", 3, flUseLabel, OH_Absolute }, /* $2d */ + { "rol", 3, flUseLabel, OH_Absolute }, /* $2e */ + { "and", 4, flUseLabel, OH_AbsoluteLong }, /* $2f */ + { "bmi", 2, flLabel, OH_Relative }, /* $30 */ + { "and", 2, flUseLabel, OH_DirectIndirectY }, /* $31 */ + { "and", 2, flUseLabel, OH_DirectIndirect }, /* $32 */ + { "and", 2, flNone, OH_StackRelativeIndirectY}, /* $33 */ + { "bit", 2, flUseLabel, OH_DirectX }, /* $34 */ + { "and", 2, flUseLabel, OH_DirectX }, /* $35 */ + { "rol", 2, flUseLabel, OH_DirectX }, /* $36 */ + { "and", 2, flUseLabel, OH_DirectIndirectLongY }, /* $37 */ + { "sec", 1, flNone, OH_Implicit }, /* $38 */ + { "and", 3, flUseLabel, OH_AbsoluteY }, /* $39 */ + { "dec", 1, flNone, OH_Accumulator }, /* $3a */ + { "tsc", 1, flNone, OH_Implicit }, /* $3b */ + { "bit", 3, flUseLabel, OH_AbsoluteX }, /* $3c */ + { "and", 3, flUseLabel, OH_AbsoluteX }, /* $3d */ + { "rol", 3, flUseLabel, OH_AbsoluteX }, /* $3e */ + { "and", 4, flUseLabel, OH_AbsoluteLongX }, /* $3f */ + { "rti", 1, flNone, OH_Rts }, /* $40 */ + { "eor", 2, flUseLabel, OH_DirectXIndirect }, /* $41 */ + { "wdm", 2, flNone, OH_Implicit }, /* $42 */ + { "eor", 2, flNone, OH_StackRelative }, /* $43 */ + { "mvp", 3, flNone, OH_BlockMove }, /* $44 */ + { "eor", 2, flUseLabel, OH_Direct }, /* $45 */ + { "lsr", 2, flUseLabel, OH_Direct }, /* $46 */ + { "eor", 2, flUseLabel, OH_DirectIndirectLong }, /* $47 */ + { "pha", 1, flNone, OH_Implicit }, /* $48 */ + { "eor", 2, flNone, OH_Immidiate }, /* $49 */ + { "lsr", 1, flNone, OH_Accumulator }, /* $4a */ + { "phk", 1, flNone, OH_Implicit }, /* $4b */ + { "jmp", 3, flLabel, OH_JmpAbsolute }, /* $4c */ + { "eor", 3, flUseLabel, OH_Absolute }, /* $4d */ + { "lsr", 3, flUseLabel, OH_Absolute }, /* $4e */ + { "eor", 4, flUseLabel, OH_AbsoluteLong }, /* $4f */ + { "bvc", 2, flLabel, OH_Relative }, /* $50 */ + { "eor", 2, flUseLabel, OH_DirectIndirectY }, /* $51 */ + { "eor", 2, flUseLabel, OH_DirectIndirect }, /* $52 */ + { "eor", 2, flNone, OH_StackRelativeIndirectY}, /* $53 */ + { "mvn", 3, flNone, OH_BlockMove }, /* $54 */ + { "eor", 2, flUseLabel, OH_DirectX }, /* $55 */ + { "lsr", 2, flUseLabel, OH_DirectX }, /* $56 */ + { "eor", 2, flUseLabel, OH_DirectIndirectLongY }, /* $57 */ + { "cli", 1, flNone, OH_Implicit }, /* $58 */ + { "eor", 3, flUseLabel, OH_AbsoluteY }, /* $59 */ + { "phy", 1, flNone, OH_Implicit }, /* $5a */ + { "tcd", 1, flNone, OH_Implicit }, /* $5b */ + { "jml", 4, flLabel, OH_AbsoluteLong }, /* $5c */ + { "eor", 3, flUseLabel, OH_AbsoluteX }, /* $5d */ + { "lsr", 3, flUseLabel, OH_AbsoluteX }, /* $5e */ + { "eor", 4, flUseLabel, OH_AbsoluteLongX }, /* $5f */ + { "rts", 1, flNone, OH_Rts }, /* $60 */ + { "adc", 2, flUseLabel, OH_DirectXIndirect }, /* $61 */ + { "per", 3, flLabel, OH_RelativeLong }, /* $62 */ + { "adc", 2, flNone, OH_StackRelative }, /* $63 */ + { "stz", 2, flUseLabel, OH_Direct }, /* $64 */ + { "adc", 2, flUseLabel, OH_Direct }, /* $65 */ + { "ror", 2, flUseLabel, OH_Direct }, /* $66 */ + { "adc", 2, flUseLabel, OH_DirectIndirectLong }, /* $67 */ + { "pla", 1, flNone, OH_Implicit }, /* $68 */ + { "adc", 2, flNone, OH_Immidiate }, /* $69 */ + { "ror", 1, flNone, OH_Accumulator }, /* $6a */ + { "rtl", 1, flNone, OH_Implicit }, /* $6b */ + { "jmp", 3, flLabel, OH_JmpAbsoluteIndirect }, /* $6c */ + { "adc", 3, flUseLabel, OH_Absolute }, /* $6d */ + { "ror", 3, flUseLabel, OH_Absolute }, /* $6e */ + { "adc", 4, flUseLabel, OH_AbsoluteLong }, /* $6f */ + { "bvs", 2, flLabel, OH_Relative }, /* $70 */ + { "adc", 2, flUseLabel, OH_DirectIndirectY }, /* $71 */ + { "adc", 2, flUseLabel, OH_DirectIndirect }, /* $72 */ + { "adc", 2, flNone, OH_StackRelativeIndirectY}, /* $73 */ + { "stz", 2, flUseLabel, OH_DirectX }, /* $74 */ + { "adc", 2, flUseLabel, OH_DirectX }, /* $75 */ + { "ror", 2, flUseLabel, OH_DirectX }, /* $76 */ + { "adc", 2, flUseLabel, OH_DirectIndirectLongY }, /* $77 */ + { "sei", 1, flNone, OH_Implicit }, /* $78 */ + { "adc", 3, flUseLabel, OH_AbsoluteY }, /* $79 */ + { "ply", 1, flNone, OH_Implicit }, /* $7a */ + { "tdc", 1, flNone, OH_Implicit }, /* $7b */ + { "jmp", 3, flLabel, OH_AbsoluteXIndirect }, /* $7c */ + { "adc", 3, flUseLabel, OH_AbsoluteX }, /* $7d */ + { "ror", 3, flUseLabel, OH_AbsoluteX }, /* $7e */ + { "adc", 4, flUseLabel, OH_AbsoluteLongX }, /* $7f */ + { "bra", 2, flLabel, OH_Relative }, /* $80 */ + { "sta", 2, flUseLabel, OH_DirectXIndirect }, /* $81 */ + { "brl", 3, flLabel, OH_RelativeLong }, /* $82 */ + { "sta", 2, flNone, OH_StackRelative }, /* $83 */ + { "sty", 2, flUseLabel, OH_Direct }, /* $84 */ + { "sta", 2, flUseLabel, OH_Direct }, /* $85 */ + { "stx", 2, flUseLabel, OH_Direct }, /* $86 */ + { "sta", 2, flUseLabel, OH_DirectIndirectLong }, /* $87 */ + { "dey", 1, flNone, OH_Implicit }, /* $88 */ + { "bit", 2, flNone, OH_Immidiate }, /* $89 */ + { "txa", 1, flNone, OH_Implicit }, /* $8a */ + { "phb", 1, flNone, OH_Implicit }, /* $8b */ + { "sty", 3, flUseLabel, OH_Absolute }, /* $8c */ + { "sta", 3, flUseLabel, OH_Absolute }, /* $8d */ + { "stx", 3, flUseLabel, OH_Absolute }, /* $8e */ + { "sta", 4, flUseLabel, OH_AbsoluteLong }, /* $8f */ + { "bcc", 2, flLabel, OH_Relative }, /* $90 */ + { "sta", 2, flUseLabel, OH_DirectIndirectY }, /* $91 */ + { "sta", 2, flUseLabel, OH_DirectIndirect }, /* $92 */ + { "sta", 2, flNone, OH_StackRelativeIndirectY}, /* $93 */ + { "sty", 2, flUseLabel, OH_DirectX }, /* $94 */ + { "sta", 2, flUseLabel, OH_DirectX }, /* $95 */ + { "stx", 2, flUseLabel, OH_DirectY }, /* $96 */ + { "sta", 2, flUseLabel, OH_DirectIndirectLongY }, /* $97 */ + { "tya", 1, flNone, OH_Implicit }, /* $98 */ + { "sta", 3, flUseLabel, OH_AbsoluteY }, /* $99 */ + { "txs", 1, flNone, OH_Implicit }, /* $9a */ + { "txy", 1, flNone, OH_Implicit }, /* $9b */ + { "stz", 3, flUseLabel, OH_Absolute }, /* $9c */ + { "sta", 3, flUseLabel, OH_AbsoluteX }, /* $9d */ + { "stz", 3, flUseLabel, OH_AbsoluteX }, /* $9e */ + { "sta", 4, flUseLabel, OH_AbsoluteLongX }, /* $9f */ + { "ldy", 2, flNone, OH_Immidiate }, /* $a0 */ + { "lda", 2, flUseLabel, OH_DirectXIndirect }, /* $a1 */ + { "ldx", 2, flNone, OH_Immidiate }, /* $a2 */ + { "lda", 2, flNone, OH_StackRelative }, /* $a3 */ + { "ldy", 2, flUseLabel, OH_Direct }, /* $a4 */ + { "lda", 2, flUseLabel, OH_Direct }, /* $a5 */ + { "ldx", 2, flUseLabel, OH_Direct }, /* $a6 */ + { "lda", 2, flUseLabel, OH_DirectIndirectLong }, /* $a7 */ + { "tay", 1, flNone, OH_Implicit }, /* $a8 */ + { "lda", 2, flNone, OH_Immidiate }, /* $a9 */ + { "tax", 1, flNone, OH_Implicit }, /* $aa */ + { "plb", 1, flNone, OH_Implicit }, /* $ab */ + { "ldy", 3, flUseLabel, OH_Absolute }, /* $ac */ + { "lda", 3, flUseLabel, OH_Absolute }, /* $ad */ + { "ldx", 3, flUseLabel, OH_Absolute }, /* $ae */ + { "lda", 4, flUseLabel, OH_AbsoluteLong }, /* $af */ + { "bcs", 2, flLabel, OH_Relative }, /* $b0 */ + { "lda", 2, flUseLabel, OH_DirectIndirectY }, /* $b1 */ + { "lda", 2, flUseLabel, OH_DirectIndirect }, /* $b2 */ + { "lda", 2, flNone, OH_StackRelativeIndirectY}, /* $b3 */ + { "ldy", 2, flUseLabel, OH_DirectX }, /* $b4 */ + { "lda", 2, flUseLabel, OH_DirectX }, /* $b5 */ + { "ldx", 2, flUseLabel, OH_DirectY }, /* $b6 */ + { "lda", 2, flUseLabel, OH_DirectIndirectLongY }, /* $b7 */ + { "clv", 1, flNone, OH_Implicit }, /* $b8 */ + { "lda", 3, flUseLabel, OH_AbsoluteY }, /* $b9 */ + { "tsx", 1, flNone, OH_Implicit }, /* $ba */ + { "tyx", 1, flNone, OH_Implicit }, /* $bb */ + { "ldy", 3, flUseLabel, OH_AbsoluteX }, /* $bc */ + { "lda", 3, flUseLabel, OH_AbsoluteX }, /* $bd */ + { "ldx", 3, flUseLabel, OH_AbsoluteY }, /* $be */ + { "lda", 4, flUseLabel, OH_AbsoluteLongX }, /* $bf */ + { "cpy", 2, flNone, OH_Immidiate }, /* $c0 */ + { "cmp", 2, flUseLabel, OH_DirectXIndirect }, /* $c1 */ + { "rep", 2, flNone, OH_Immidiate }, /* $c2 */ + { "cmp", 2, flNone, OH_StackRelative }, /* $c3 */ + { "cpy", 2, flUseLabel, OH_Direct }, /* $c4 */ + { "cmp", 2, flUseLabel, OH_Direct }, /* $c5 */ + { "dec", 2, flUseLabel, OH_Direct }, /* $c6 */ + { "cmp", 2, flUseLabel, OH_DirectIndirectLong }, /* $c7 */ + { "iny", 1, flNone, OH_Implicit }, /* $c8 */ + { "cmp", 2, flNone, OH_Immidiate }, /* $c9 */ + { "dex", 1, flNone, OH_Implicit }, /* $ca */ + { "wai", 1, flNone, OH_Implicit }, /* $cb */ + { "cpy", 3, flUseLabel, OH_Absolute }, /* $cc */ + { "cmp", 3, flUseLabel, OH_Absolute }, /* $cd */ + { "dec", 3, flUseLabel, OH_Absolute }, /* $ce */ + { "cmp", 4, flUseLabel, OH_AbsoluteLong }, /* $cf */ + { "bne", 2, flLabel, OH_Relative }, /* $d0 */ + { "cmp", 2, flUseLabel, OH_DirectXIndirect }, /* $d1 */ + { "cmp", 2, flUseLabel, OH_DirectIndirect }, /* $d2 */ + { "cmp", 2, flNone, OH_StackRelativeIndirectY}, /* $d3 */ + { "pei", 2, flUseLabel, OH_Direct }, /* $d4 */ + { "cmp", 2, flUseLabel, OH_DirectX }, /* $d5 */ + { "dec", 2, flUseLabel, OH_DirectX }, /* $d6 */ + { "cmp", 2, flUseLabel, OH_DirectIndirectLongY }, /* $d7 */ + { "cld", 1, flNone, OH_Implicit }, /* $d8 */ + { "cmp", 3, flUseLabel, OH_AbsoluteY }, /* $d9 */ + { "phx", 1, flNone, OH_Implicit }, /* $da */ + { "stp", 1, flNone, OH_Implicit }, /* $db */ + { "jml", 3, flLabel, OH_AbsoluteIndirect }, /* $dc */ + { "cmp", 3, flUseLabel, OH_AbsoluteX }, /* $dd */ + { "dec", 3, flUseLabel, OH_AbsoluteX }, /* $de */ + { "cmp", 4, flUseLabel, OH_AbsoluteLongX }, /* $df */ + { "cpx", 2, flNone, OH_Immidiate }, /* $e0 */ + { "sbc", 2, flUseLabel, OH_DirectXIndirect }, /* $e1 */ + { "sep", 2, flNone, OH_Immidiate }, /* $e2 */ + { "sbc", 2, flNone, OH_StackRelative }, /* $e3 */ + { "cpx", 2, flUseLabel, OH_Direct }, /* $e4 */ + { "sbc", 2, flUseLabel, OH_Direct }, /* $e5 */ + { "inc", 2, flUseLabel, OH_Direct }, /* $e6 */ + { "sbc", 2, flUseLabel, OH_DirectIndirectLong }, /* $e7 */ + { "inx", 1, flNone, OH_Implicit }, /* $e8 */ + { "sbc", 2, flNone, OH_Immidiate }, /* $e9 */ + { "nop", 1, flNone, OH_Implicit }, /* $ea */ + { "xba", 1, flNone, OH_Implicit }, /* $eb */ + { "cpx", 3, flUseLabel, OH_Absolute }, /* $ec */ + { "sbc", 3, flUseLabel, OH_Absolute }, /* $ed */ + { "inc", 3, flUseLabel, OH_Absolute }, /* $ee */ + { "sbc", 4, flUseLabel, OH_AbsoluteLong }, /* $ef */ + { "beq", 2, flLabel, OH_Relative }, /* $f0 */ + { "sbc", 2, flUseLabel, OH_DirectIndirectY }, /* $f1 */ + { "sbc", 2, flUseLabel, OH_DirectIndirect }, /* $f2 */ + { "sbc", 2, flNone, OH_StackRelativeIndirectY}, /* $f3 */ + { "pea", 3, flUseLabel, OH_Absolute }, /* $f4 */ + { "sbc", 2, flUseLabel, OH_DirectX }, /* $f5 */ + { "inc", 2, flUseLabel, OH_DirectX }, /* $f6 */ + { "sbc", 2, flUseLabel, OH_DirectIndirectLongY }, /* $f7 */ + { "sed", 1, flNone, OH_Implicit }, /* $f8 */ + { "sbc", 3, flUseLabel, OH_AbsoluteY }, /* $f9 */ + { "plx", 1, flNone, OH_Implicit }, /* $fa */ + { "xce", 1, flNone, OH_Implicit }, /* $fb */ + { "jsr", 3, flLabel, OH_AbsoluteXIndirect }, /* $fc */ + { "sbc", 3, flUseLabel, OH_AbsoluteX }, /* $fd */ + { "inc", 3, flUseLabel, OH_AbsoluteX }, /* $fe */ + { "sbc", 4, flUseLabel, OH_AbsoluteLongX }, /* $ff */ }; diff --git a/src/da65/opc65c02.c b/src/da65/opc65c02.c index 85eb7abd4..69d9eb4ed 100644 --- a/src/da65/opc65c02.c +++ b/src/da65/opc65c02.c @@ -47,262 +47,262 @@ /* Descriptions for all opcodes */ const OpcDesc OpcTable_65C02[256] = { - { "brk", 1, 0, CPU_6502, OH_Implicit }, /* $00 */ - { "ora", 2, lfUseLabel, CPU_6502, OH_DirectXIndirect }, /* $01 */ - { "cop", 2, 0, CPU_65816, OH_Implicit }, /* $02 */ - { "ora", 2, 0, CPU_65816, OH_StackRelative }, /* $03 */ - { "tsb", 2, lfUseLabel, CPU_65816, OH_Direct }, /* $04 */ - { "ora", 2, lfUseLabel, CPU_6502, OH_Direct }, /* $05 */ - { "asl", 2, lfUseLabel, CPU_6502, OH_Direct }, /* $06 */ - { "ora", 2, lfUseLabel, CPU_65816, OH_DirectIndirectLong }, /* $07 */ - { "php", 1, 0, CPU_6502, OH_Implicit }, /* $08 */ - { "ora", 2, 0, CPU_6502, OH_Immidiate }, /* $09 */ - { "asl", 1, 0, CPU_6502, OH_Accumulator }, /* $0a */ - { "phd", 1, 0, CPU_65816, OH_Implicit }, /* $0b */ - { "tsb", 3, lfUseLabel, CPU_65816, OH_Absolute }, /* $0c */ - { "ora", 3, lfUseLabel, CPU_6502, OH_Absolute }, /* $0d */ - { "asl", 3, lfUseLabel, CPU_6502, OH_Absolute }, /* $0e */ - { "ora", 4, lfUseLabel, CPU_65816, OH_AbsoluteLong }, /* $0f */ - { "bpl", 2, lfLabel, CPU_6502, OH_Relative }, /* $10 */ - { "ora", 2, lfUseLabel, CPU_6502, OH_DirectIndirectY }, /* $11 */ - { "ora", 2, lfUseLabel, CPU_65816, OH_DirectIndirect }, /* $12 */ - { "ora", 2, 0, CPU_65816, OH_StackRelativeIndirectY}, /* $13 */ - { "trb", 2, lfUseLabel, CPU_65816, OH_Direct }, /* $14 */ - { "ora", 2, lfUseLabel, CPU_6502, OH_DirectX }, /* $15 */ - { "asl", 2, lfUseLabel, CPU_6502, OH_DirectX }, /* $16 */ - { "ora", 2, lfUseLabel, CPU_65816, OH_DirectIndirectLongY }, /* $17 */ - { "clc", 1, 0, CPU_6502, OH_Implicit }, /* $18 */ - { "ora", 3, lfUseLabel, CPU_6502, OH_AbsoluteY }, /* $19 */ - { "inc", 1, 0, CPU_65816, OH_Accumulator }, /* $1a */ - { "tcs", 1, 0, CPU_65816, OH_Implicit }, /* $1b */ - { "trb", 3, lfUseLabel, CPU_65816, OH_Absolute }, /* $1c */ - { "ora", 3, lfUseLabel, CPU_6502, OH_AbsoluteX }, /* $1d */ - { "asl", 3, lfUseLabel, CPU_6502, OH_AbsoluteX }, /* $1e */ - { "ora", 4, lfUseLabel, CPU_65816, OH_AbsoluteLongX }, /* $1f */ - { "jsr", 3, lfLabel, CPU_6502, OH_Absolute }, /* $20 */ - { "and", 2, lfUseLabel, CPU_6502, OH_DirectXIndirect }, /* $21 */ - { "jsl", 3, lfLabel, CPU_65816, OH_AbsoluteLong }, /* $22 */ - { "and", 2, 0, CPU_65816, OH_StackRelative }, /* $23 */ - { "bit", 2, lfUseLabel, CPU_6502, OH_Direct }, /* $24 */ - { "and", 2, lfUseLabel, CPU_6502, OH_Direct }, /* $25 */ - { "rol", 2, lfUseLabel, CPU_6502, OH_Direct }, /* $26 */ - { "and", 2, lfUseLabel, CPU_65816, OH_DirectIndirectLong }, /* $27 */ - { "plp", 1, 0, CPU_6502, OH_Implicit }, /* $28 */ - { "and", 2, 0, CPU_6502, OH_Immidiate }, /* $29 */ - { "rol", 1, 0, CPU_6502, OH_Accumulator }, /* $2a */ - { "pld", 1, 0, CPU_65816, OH_Implicit }, /* $2b */ - { "bit", 3, lfUseLabel, CPU_6502, OH_Absolute }, /* $2c */ - { "and", 3, lfUseLabel, CPU_6502, OH_Absolute }, /* $2d */ - { "rol", 3, lfUseLabel, CPU_6502, OH_Absolute }, /* $2e */ - { "and", 4, lfUseLabel, CPU_65816, OH_AbsoluteLong }, /* $2f */ - { "bmi", 2, lfLabel, CPU_6502, OH_Relative }, /* $30 */ - { "and", 2, lfUseLabel, CPU_6502, OH_DirectIndirectY }, /* $31 */ - { "and", 2, lfUseLabel, CPU_65816, OH_DirectIndirect }, /* $32 */ - { "and", 2, 0, CPU_65816, OH_StackRelativeIndirectY}, /* $33 */ - { "bit", 2, lfUseLabel, CPU_65816, OH_DirectX }, /* $34 */ - { "and", 2, lfUseLabel, CPU_6502, OH_DirectX }, /* $35 */ - { "rol", 2, lfUseLabel, CPU_6502, OH_DirectX }, /* $36 */ - { "and", 2, lfUseLabel, CPU_65816, OH_DirectIndirectLongY }, /* $37 */ - { "sec", 1, 0, CPU_6502, OH_Implicit }, /* $38 */ - { "and", 3, lfUseLabel, CPU_6502, OH_AbsoluteY }, /* $39 */ - { "dec", 1, 0, CPU_65816, OH_Accumulator }, /* $3a */ - { "tsc", 1, 0, CPU_65816, OH_Implicit }, /* $3b */ - { "bit", 3, lfUseLabel, CPU_65816, OH_AbsoluteX }, /* $3c */ - { "and", 3, lfUseLabel, CPU_6502, OH_AbsoluteX }, /* $3d */ - { "rol", 3, lfUseLabel, CPU_6502, OH_AbsoluteX }, /* $3e */ - { "and", 4, lfUseLabel, CPU_65816, OH_AbsoluteLongX }, /* $3f */ - { "rti", 1, 0, CPU_6502, OH_Rts }, /* $40 */ - { "eor", 2, lfUseLabel, CPU_6502, OH_DirectXIndirect }, /* $41 */ - { "wdm", 2, 0, CPU_65816, OH_Implicit }, /* $42 */ - { "eor", 2, 0, CPU_65816, OH_StackRelative }, /* $43 */ - { "mvp", 3, 0, CPU_65816, OH_BlockMove }, /* $44 */ - { "eor", 2, lfUseLabel, CPU_6502, OH_Direct }, /* $45 */ - { "lsr", 2, lfUseLabel, CPU_6502, OH_Direct }, /* $46 */ - { "eor", 2, lfUseLabel, CPU_65816, OH_DirectIndirectLong }, /* $47 */ - { "pha", 1, 0, CPU_6502, OH_Implicit }, /* $48 */ - { "eor", 2, 0, CPU_6502, OH_Immidiate }, /* $49 */ - { "lsr", 1, 0, CPU_6502, OH_Accumulator }, /* $4a */ - { "phk", 1, 0, CPU_65816, OH_Implicit }, /* $4b */ - { "jmp", 3, lfLabel, CPU_6502, OH_JmpAbsolute }, /* $4c */ - { "eor", 3, lfUseLabel, CPU_6502, OH_Absolute }, /* $4d */ - { "lsr", 3, lfUseLabel, CPU_6502, OH_Absolute }, /* $4e */ - { "eor", 4, lfUseLabel, CPU_65816, OH_AbsoluteLong }, /* $4f */ - { "bvc", 2, lfLabel, CPU_6502, OH_Relative }, /* $50 */ - { "eor", 2, lfUseLabel, CPU_6502, OH_DirectIndirectY }, /* $51 */ - { "eor", 2, lfUseLabel, CPU_65816, OH_DirectIndirect }, /* $52 */ - { "eor", 2, 0, CPU_65816, OH_StackRelativeIndirectY}, /* $53 */ - { "mvn", 3, 0, CPU_65816, OH_BlockMove }, /* $54 */ - { "eor", 2, lfUseLabel, CPU_6502, OH_DirectX }, /* $55 */ - { "lsr", 2, lfUseLabel, CPU_6502, OH_DirectX }, /* $56 */ - { "eor", 2, lfUseLabel, CPU_65816, OH_DirectIndirectLongY }, /* $57 */ - { "cli", 1, 0, CPU_6502, OH_Implicit }, /* $58 */ - { "eor", 3, lfUseLabel, CPU_6502, OH_AbsoluteY }, /* $59 */ - { "phy", 1, 0, CPU_65816, OH_Implicit }, /* $5a */ - { "tcd", 1, 0, CPU_65816, OH_Implicit }, /* $5b */ - { "jml", 4, lfLabel, CPU_65816, OH_AbsoluteLong }, /* $5c */ - { "eor", 3, lfUseLabel, CPU_6502, OH_AbsoluteX }, /* $5d */ - { "lsr", 3, lfUseLabel, CPU_6502, OH_AbsoluteX }, /* $5e */ - { "eor", 4, lfUseLabel, CPU_65816, OH_AbsoluteLongX }, /* $5f */ - { "rts", 1, 0, CPU_6502, OH_Rts }, /* $60 */ - { "adc", 2, lfUseLabel, CPU_6502, OH_DirectXIndirect }, /* $61 */ - { "per", 3, lfLabel, CPU_65816, OH_RelativeLong }, /* $62 */ - { "adc", 2, 0, CPU_65816, OH_StackRelative }, /* $63 */ - { "stz", 2, lfUseLabel, CPU_65816, OH_Direct }, /* $64 */ - { "adc", 2, lfUseLabel, CPU_6502, OH_Direct }, /* $65 */ - { "ror", 2, lfUseLabel, CPU_6502, OH_Direct }, /* $66 */ - { "adc", 2, lfUseLabel, CPU_65816, OH_DirectIndirectLong }, /* $67 */ - { "pla", 1, 0, CPU_6502, OH_Implicit }, /* $68 */ - { "adc", 2, 0, CPU_6502, OH_Immidiate }, /* $69 */ - { "ror", 1, 0, CPU_6502, OH_Accumulator }, /* $6a */ - { "rtl", 1, 0, CPU_65816, OH_Implicit }, /* $6b */ - { "jmp", 3, lfLabel, CPU_6502, OH_JmpAbsoluteIndirect }, /* $6c */ - { "adc", 3, lfUseLabel, CPU_6502, OH_Absolute }, /* $6d */ - { "ror", 3, lfUseLabel, CPU_6502, OH_Absolute }, /* $6e */ - { "adc", 4, lfUseLabel, CPU_65816, OH_AbsoluteLong }, /* $6f */ - { "bvs", 2, lfLabel, CPU_6502, OH_Relative }, /* $70 */ - { "adc", 2, lfUseLabel, CPU_6502, OH_DirectIndirectY }, /* $71 */ - { "adc", 2, lfUseLabel, CPU_65816, OH_DirectIndirect }, /* $72 */ - { "adc", 2, 0, CPU_65816, OH_StackRelativeIndirectY}, /* $73 */ - { "stz", 2, lfUseLabel, CPU_65816, OH_DirectX }, /* $74 */ - { "adc", 2, lfUseLabel, CPU_6502, OH_DirectX }, /* $75 */ - { "ror", 2, lfUseLabel, CPU_6502, OH_DirectX }, /* $76 */ - { "adc", 2, lfUseLabel, CPU_65816, OH_DirectIndirectLongY }, /* $77 */ - { "sei", 1, 0, CPU_6502, OH_Implicit }, /* $78 */ - { "adc", 3, lfUseLabel, CPU_6502, OH_AbsoluteY }, /* $79 */ - { "ply", 1, 0, CPU_65816, OH_Implicit }, /* $7a */ - { "tdc", 1, 0, CPU_65816, OH_Implicit }, /* $7b */ - { "jmp", 3, lfLabel, CPU_65816, OH_AbsoluteXIndirect }, /* $7c */ - { "adc", 3, lfUseLabel, CPU_6502, OH_AbsoluteX }, /* $7d */ - { "ror", 3, lfUseLabel, CPU_6502, OH_AbsoluteX }, /* $7e */ - { "adc", 4, lfUseLabel, CPU_65816, OH_AbsoluteLongX }, /* $7f */ - { "bra", 2, lfLabel, CPU_65816, OH_Relative }, /* $80 */ - { "sta", 2, lfUseLabel, CPU_6502, OH_DirectXIndirect }, /* $81 */ - { "brl", 3, lfLabel, CPU_65816, OH_RelativeLong }, /* $82 */ - { "sta", 2, 0, CPU_65816, OH_StackRelative }, /* $83 */ - { "sty", 2, lfUseLabel, CPU_6502, OH_Direct }, /* $84 */ - { "sta", 2, lfUseLabel, CPU_6502, OH_Direct }, /* $85 */ - { "stx", 2, lfUseLabel, CPU_6502, OH_Direct }, /* $86 */ - { "sta", 2, lfUseLabel, CPU_65816, OH_DirectIndirectLong }, /* $87 */ - { "dey", 1, 0, CPU_6502, OH_Implicit }, /* $88 */ - { "bit", 2, 0, CPU_65816, OH_Immidiate }, /* $89 */ - { "txa", 1, 0, CPU_6502, OH_Implicit }, /* $8a */ - { "phb", 1, 0, CPU_65816, OH_Implicit }, /* $8b */ - { "sty", 3, lfUseLabel, CPU_6502, OH_Absolute }, /* $8c */ - { "sta", 3, lfUseLabel, CPU_6502, OH_Absolute }, /* $8d */ - { "stx", 3, lfUseLabel, CPU_6502, OH_Absolute }, /* $8e */ - { "sta", 4, lfUseLabel, CPU_65816, OH_AbsoluteLong }, /* $8f */ - { "bcc", 2, lfLabel, CPU_6502, OH_Relative }, /* $90 */ - { "sta", 2, lfUseLabel, CPU_6502, OH_DirectIndirectY }, /* $91 */ - { "sta", 2, lfUseLabel, CPU_65816, OH_DirectIndirect }, /* $92 */ - { "sta", 2, 0, CPU_65816, OH_StackRelativeIndirectY}, /* $93 */ - { "sty", 2, lfUseLabel, CPU_6502, OH_DirectX }, /* $94 */ - { "sta", 2, lfUseLabel, CPU_6502, OH_DirectX }, /* $95 */ - { "stx", 2, lfUseLabel, CPU_6502, OH_DirectY }, /* $96 */ - { "sta", 2, lfUseLabel, CPU_65816, OH_DirectIndirectLongY }, /* $97 */ - { "tya", 1, 0, CPU_6502, OH_Implicit }, /* $98 */ - { "sta", 3, lfUseLabel, CPU_6502, OH_AbsoluteY }, /* $99 */ - { "txs", 1, 0, CPU_6502, OH_Implicit }, /* $9a */ - { "txy", 1, 0, CPU_65816, OH_Implicit }, /* $9b */ - { "stz", 3, lfUseLabel, CPU_65816, OH_Absolute }, /* $9c */ - { "sta", 3, lfUseLabel, CPU_6502, OH_AbsoluteX }, /* $9d */ - { "stz", 3, lfUseLabel, CPU_65816, OH_AbsoluteX }, /* $9e */ - { "sta", 4, lfUseLabel, CPU_65816, OH_AbsoluteLongX }, /* $9f */ - { "ldy", 2, 0, CPU_6502, OH_Immidiate }, /* $a0 */ - { "lda", 2, lfUseLabel, CPU_6502, OH_DirectXIndirect }, /* $a1 */ - { "ldx", 2, 0, CPU_6502, OH_Immidiate }, /* $a2 */ - { "lda", 2, 0, CPU_65816, OH_StackRelative }, /* $a3 */ - { "ldy", 2, lfUseLabel, CPU_6502, OH_Direct }, /* $a4 */ - { "lda", 2, lfUseLabel, CPU_6502, OH_Direct }, /* $a5 */ - { "ldx", 2, lfUseLabel, CPU_6502, OH_Direct }, /* $a6 */ - { "lda", 2, lfUseLabel, CPU_65816, OH_DirectIndirectLong }, /* $a7 */ - { "tay", 1, 0, CPU_6502, OH_Implicit }, /* $a8 */ - { "lda", 2, 0, CPU_6502, OH_Immidiate }, /* $a9 */ - { "tax", 1, 0, CPU_6502, OH_Implicit }, /* $aa */ - { "plb", 1, 0, CPU_65816, OH_Implicit }, /* $ab */ - { "ldy", 3, lfUseLabel, CPU_6502, OH_Absolute }, /* $ac */ - { "lda", 3, lfUseLabel, CPU_6502, OH_Absolute }, /* $ad */ - { "ldx", 3, lfUseLabel, CPU_6502, OH_Absolute }, /* $ae */ - { "lda", 4, lfUseLabel, CPU_65816, OH_AbsoluteLong }, /* $af */ - { "bcs", 2, lfLabel, CPU_6502, OH_Relative }, /* $b0 */ - { "lda", 2, lfUseLabel, CPU_6502, OH_DirectIndirectY }, /* $b1 */ - { "lda", 2, lfUseLabel, CPU_65816, OH_DirectIndirect }, /* $b2 */ - { "lda", 2, 0, CPU_65816, OH_StackRelativeIndirectY}, /* $b3 */ - { "ldy", 2, lfUseLabel, CPU_6502, OH_DirectX }, /* $b4 */ - { "lda", 2, lfUseLabel, CPU_6502, OH_DirectX }, /* $b5 */ - { "ldx", 2, lfUseLabel, CPU_6502, OH_DirectY }, /* $b6 */ - { "lda", 2, lfUseLabel, CPU_65816, OH_DirectIndirectLongY }, /* $b7 */ - { "clv", 1, 0, CPU_6502, OH_Implicit }, /* $b8 */ - { "lda", 3, lfUseLabel, CPU_6502, OH_AbsoluteY }, /* $b9 */ - { "tsx", 1, 0, CPU_6502, OH_Implicit }, /* $ba */ - { "tyx", 1, 0, CPU_65816, OH_Implicit }, /* $bb */ - { "ldy", 3, lfUseLabel, CPU_6502, OH_AbsoluteX }, /* $bc */ - { "lda", 3, lfUseLabel, CPU_6502, OH_AbsoluteX }, /* $bd */ - { "ldx", 3, lfUseLabel, CPU_6502, OH_AbsoluteY }, /* $be */ - { "lda", 4, lfUseLabel, CPU_65816, OH_AbsoluteLongX }, /* $bf */ - { "cpy", 2, 0, CPU_6502, OH_Immidiate }, /* $c0 */ - { "cmp", 2, lfUseLabel, CPU_6502, OH_DirectXIndirect }, /* $c1 */ - { "rep", 2, 0, CPU_65816, OH_Immidiate }, /* $c2 */ - { "cmp", 2, 0, CPU_65816, OH_StackRelative }, /* $c3 */ - { "cpy", 2, lfUseLabel, CPU_6502, OH_Direct }, /* $c4 */ - { "cmp", 2, lfUseLabel, CPU_6502, OH_Direct }, /* $c5 */ - { "dec", 2, lfUseLabel, CPU_6502, OH_Direct }, /* $c6 */ - { "cmp", 2, lfUseLabel, CPU_65816, OH_DirectIndirectLong }, /* $c7 */ - { "iny", 1, 0, CPU_6502, OH_Implicit }, /* $c8 */ - { "cmp", 2, 0, CPU_6502, OH_Immidiate }, /* $c9 */ - { "dex", 1, 0, CPU_6502, OH_Implicit }, /* $ca */ - { "wai", 1, 0, CPU_65816, OH_Implicit }, /* $cb */ - { "cpy", 3, lfUseLabel, CPU_6502, OH_Absolute }, /* $cc */ - { "cmp", 3, lfUseLabel, CPU_6502, OH_Absolute }, /* $cd */ - { "dec", 3, lfUseLabel, CPU_6502, OH_Absolute }, /* $ce */ - { "cmp", 4, lfUseLabel, CPU_65816, OH_AbsoluteLong }, /* $cf */ - { "bne", 2, lfLabel, CPU_6502, OH_Relative }, /* $d0 */ - { "cmp", 2, lfUseLabel, CPU_6502, OH_DirectXIndirect }, /* $d1 */ - { "cmp", 2, lfUseLabel, CPU_65816, OH_DirectIndirect }, /* $d2 */ - { "cmp", 2, 0, CPU_65816, OH_StackRelativeIndirectY}, /* $d3 */ - { "pei", 2, lfUseLabel, CPU_65816, OH_Direct }, /* $d4 */ - { "cmp", 2, lfUseLabel, CPU_6502, OH_DirectX }, /* $d5 */ - { "dec", 2, lfUseLabel, CPU_6502, OH_DirectX }, /* $d6 */ - { "cmp", 2, lfUseLabel, CPU_65816, OH_DirectIndirectLongY }, /* $d7 */ - { "cld", 1, 0, CPU_6502, OH_Implicit }, /* $d8 */ - { "cmp", 3, lfUseLabel, CPU_6502, OH_AbsoluteY }, /* $d9 */ - { "phx", 1, 0, CPU_65816, OH_Implicit }, /* $da */ - { "stp", 1, 0, CPU_65816, OH_Implicit }, /* $db */ - { "jml", 3, lfLabel, CPU_65816, OH_AbsoluteIndirect }, /* $dc */ - { "cmp", 3, lfUseLabel, CPU_6502, OH_AbsoluteX }, /* $dd */ - { "dec", 3, lfUseLabel, CPU_6502, OH_AbsoluteX }, /* $de */ - { "cmp", 4, lfUseLabel, CPU_65816, OH_AbsoluteLongX }, /* $df */ - { "cpx", 2, 0, CPU_6502, OH_Immidiate }, /* $e0 */ - { "sbc", 2, lfUseLabel, CPU_6502, OH_DirectXIndirect }, /* $e1 */ - { "sep", 2, 0, CPU_65816, OH_Immidiate }, /* $e2 */ - { "sbc", 2, 0, CPU_65816, OH_StackRelative }, /* $e3 */ - { "cpx", 2, lfUseLabel, CPU_6502, OH_Direct }, /* $e4 */ - { "sbc", 2, lfUseLabel, CPU_6502, OH_Direct }, /* $e5 */ - { "inc", 2, lfUseLabel, CPU_6502, OH_Direct }, /* $e6 */ - { "sbc", 2, lfUseLabel, CPU_65816, OH_DirectIndirectLong }, /* $e7 */ - { "inx", 1, 0, CPU_6502, OH_Implicit }, /* $e8 */ - { "sbc", 2, 0, CPU_6502, OH_Immidiate }, /* $e9 */ - { "nop", 1, 0, CPU_6502, OH_Implicit }, /* $ea */ - { "xba", 1, 0, CPU_65816, OH_Implicit }, /* $eb */ - { "cpx", 3, lfUseLabel, CPU_6502, OH_Absolute }, /* $ec */ - { "sbc", 3, lfUseLabel, CPU_6502, OH_Absolute }, /* $ed */ - { "inc", 3, lfUseLabel, CPU_6502, OH_Absolute }, /* $ee */ - { "sbc", 4, lfUseLabel, CPU_65816, OH_AbsoluteLong }, /* $ef */ - { "beq", 2, lfLabel, CPU_6502, OH_Relative }, /* $f0 */ - { "sbc", 2, lfUseLabel, CPU_6502, OH_DirectIndirectY }, /* $f1 */ - { "sbc", 2, lfUseLabel, CPU_65816, OH_DirectIndirect }, /* $f2 */ - { "sbc", 2, 0, CPU_65816, OH_StackRelativeIndirectY}, /* $f3 */ - { "pea", 3, lfUseLabel, CPU_65816, OH_Absolute }, /* $f4 */ - { "sbc", 2, lfUseLabel, CPU_6502, OH_DirectX }, /* $f5 */ - { "inc", 2, lfUseLabel, CPU_6502, OH_DirectX }, /* $f6 */ - { "sbc", 2, lfUseLabel, CPU_65816, OH_DirectIndirectLongY }, /* $f7 */ - { "sed", 1, 0, CPU_6502, OH_Implicit }, /* $f8 */ - { "sbc", 3, lfUseLabel, CPU_6502, OH_AbsoluteY }, /* $f9 */ - { "plx", 1, 0, CPU_65816, OH_Implicit }, /* $fa */ - { "xce", 1, 0, CPU_65816, OH_Implicit }, /* $fb */ - { "jsr", 3, lfLabel, CPU_65816, OH_AbsoluteXIndirect }, /* $fc */ - { "sbc", 3, lfUseLabel, CPU_6502, OH_AbsoluteX }, /* $fd */ - { "inc", 3, lfUseLabel, CPU_6502, OH_AbsoluteX }, /* $fe */ - { "sbc", 4, lfUseLabel, CPU_65816, OH_AbsoluteLongX }, /* $ff */ + { "brk", 1, flNone, OH_Implicit }, /* $00 */ + { "ora", 2, flUseLabel, OH_DirectXIndirect }, /* $01 */ + { "", 1, flIllegal, OH_Illegal, }, /* $02 */ + { "", 1, flIllegal, OH_Illegal, }, /* $03 */ + { "tsb", 2, flUseLabel, OH_Direct }, /* $04 */ + { "ora", 2, flUseLabel, OH_Direct }, /* $05 */ + { "asl", 2, flUseLabel, OH_Direct }, /* $06 */ + { "rmb0", 1, flUseLabel, OH_Direct, }, /* $07 */ + { "php", 1, flNone, OH_Implicit }, /* $08 */ + { "ora", 2, flNone, OH_Immidiate }, /* $09 */ + { "asl", 1, flNone, OH_Accumulator }, /* $0a */ + { "", 1, flIllegal, OH_Illegal, }, /* $0b */ + { "tsb", 3, flUseLabel, OH_Absolute }, /* $0c */ + { "ora", 3, flUseLabel, OH_Absolute }, /* $0d */ + { "asl", 3, flUseLabel, OH_Absolute }, /* $0e */ + { "bbr0", 3, flUseLabel, OH_BitBranch }, /* $0f */ + { "bpl", 2, flLabel, OH_Relative }, /* $10 */ + { "ora", 2, flUseLabel, OH_DirectIndirectY }, /* $11 */ + { "ora", 2, flUseLabel, OH_DirectIndirect }, /* $12 */ + { "", 1, flIllegal, OH_Illegal, }, /* $13 */ + { "trb", 2, flUseLabel, OH_Direct }, /* $14 */ + { "ora", 2, flUseLabel, OH_DirectX }, /* $15 */ + { "asl", 2, flUseLabel, OH_DirectX }, /* $16 */ + { "rmb1", 1, flUseLabel, OH_Direct, }, /* $17 */ + { "clc", 1, flNone, OH_Implicit }, /* $18 */ + { "ora", 3, flUseLabel, OH_AbsoluteY }, /* $19 */ + { "inc", 1, flNone, OH_Accumulator }, /* $1a */ + { "", 1, flIllegal, OH_Illegal, }, /* $1b */ + { "trb", 3, flUseLabel, OH_Absolute }, /* $1c */ + { "ora", 3, flUseLabel, OH_AbsoluteX }, /* $1d */ + { "asl", 3, flUseLabel, OH_AbsoluteX }, /* $1e */ + { "bbr1", 3, flUseLabel, OH_BitBranch }, /* $1f */ + { "jsr", 3, flLabel, OH_Absolute }, /* $20 */ + { "and", 2, flUseLabel, OH_DirectXIndirect }, /* $21 */ + { "", 1, flIllegal, OH_Illegal, }, /* $22 */ + { "", 1, flIllegal, OH_Illegal, }, /* $23 */ + { "bit", 2, flUseLabel, OH_Direct }, /* $24 */ + { "and", 2, flUseLabel, OH_Direct }, /* $25 */ + { "rol", 2, flUseLabel, OH_Direct }, /* $26 */ + { "rmb2", 1, flUseLabel, OH_Direct, }, /* $27 */ + { "plp", 1, flNone, OH_Implicit }, /* $28 */ + { "and", 2, flNone, OH_Immidiate }, /* $29 */ + { "rol", 1, flNone, OH_Accumulator }, /* $2a */ + { "", 1, flIllegal, OH_Illegal, }, /* $2b */ + { "bit", 3, flUseLabel, OH_Absolute }, /* $2c */ + { "and", 3, flUseLabel, OH_Absolute }, /* $2d */ + { "rol", 3, flUseLabel, OH_Absolute }, /* $2e */ + { "bbr2", 3, flUseLabel, OH_BitBranch }, /* $2f */ + { "bmi", 2, flLabel, OH_Relative }, /* $30 */ + { "and", 2, flUseLabel, OH_DirectIndirectY }, /* $31 */ + { "and", 2, flUseLabel, OH_DirectIndirect, }, /* $32 */ + { "", 1, flIllegal, OH_Illegal, }, /* $33 */ + { "bit", 2, flUseLabel, OH_DirectX }, /* $34 */ + { "and", 2, flUseLabel, OH_DirectX }, /* $35 */ + { "rol", 2, flUseLabel, OH_DirectX }, /* $36 */ + { "rmb3", 1, flUseLabel, OH_Direct, }, /* $37 */ + { "sec", 1, flNone, OH_Implicit }, /* $38 */ + { "and", 3, flUseLabel, OH_AbsoluteY }, /* $39 */ + { "dec", 1, flNone, OH_Accumulator }, /* $3a */ + { "", 1, flIllegal, OH_Illegal, }, /* $3b */ + { "bit", 3, flUseLabel, OH_AbsoluteX }, /* $3c */ + { "and", 3, flUseLabel, OH_AbsoluteX }, /* $3d */ + { "rol", 3, flUseLabel, OH_AbsoluteX }, /* $3e */ + { "bbr3", 3, flUseLabel, OH_BitBranch }, /* $3f */ + { "rti", 1, flNone, OH_Rts }, /* $40 */ + { "eor", 2, flUseLabel, OH_DirectXIndirect }, /* $41 */ + { "", 1, flIllegal, OH_Illegal, }, /* $42 */ + { "", 1, flIllegal, OH_Illegal, }, /* $43 */ + { "", 1, flIllegal, OH_Illegal, }, /* $44 */ + { "eor", 2, flUseLabel, OH_Direct }, /* $45 */ + { "lsr", 2, flUseLabel, OH_Direct }, /* $46 */ + { "rmb4", 1, flUseLabel, OH_Direct, }, /* $47 */ + { "pha", 1, flNone, OH_Implicit }, /* $48 */ + { "eor", 2, flNone, OH_Immidiate }, /* $49 */ + { "lsr", 1, flNone, OH_Accumulator }, /* $4a */ + { "", 1, flIllegal, OH_Illegal, }, /* $4b */ + { "jmp", 3, flLabel, OH_JmpAbsolute }, /* $4c */ + { "eor", 3, flUseLabel, OH_Absolute }, /* $4d */ + { "lsr", 3, flUseLabel, OH_Absolute }, /* $4e */ + { "bbr4", 3, flUseLabel, OH_BitBranch }, /* $4f */ + { "bvc", 2, flLabel, OH_Relative }, /* $50 */ + { "eor", 2, flUseLabel, OH_DirectIndirectY }, /* $51 */ + { "eor", 2, flUseLabel, OH_DirectIndirect }, /* $52 */ + { "", 1, flIllegal, OH_Illegal, }, /* $53 */ + { "", 1, flIllegal, OH_Illegal, }, /* $54 */ + { "eor", 2, flUseLabel, OH_DirectX }, /* $55 */ + { "lsr", 2, flUseLabel, OH_DirectX }, /* $56 */ + { "rmb5", 1, flUseLabel, OH_Direct, }, /* $57 */ + { "cli", 1, flNone, OH_Implicit }, /* $58 */ + { "eor", 3, flUseLabel, OH_AbsoluteY }, /* $59 */ + { "phy", 1, flNone, OH_Implicit }, /* $5a */ + { "", 1, flIllegal, OH_Illegal, }, /* $5b */ + { "", 1, flIllegal, OH_Illegal, }, /* $5c */ + { "eor", 3, flUseLabel, OH_AbsoluteX }, /* $5d */ + { "lsr", 3, flUseLabel, OH_AbsoluteX }, /* $5e */ + { "bbr5", 3, flUseLabel, OH_BitBranch }, /* $5f */ + { "rts", 1, flNone, OH_Rts }, /* $60 */ + { "adc", 2, flUseLabel, OH_DirectXIndirect }, /* $61 */ + { "", 1, flIllegal, OH_Illegal, }, /* $62 */ + { "", 1, flIllegal, OH_Illegal, }, /* $63 */ + { "stz", 2, flUseLabel, OH_Direct }, /* $64 */ + { "adc", 2, flUseLabel, OH_Direct }, /* $65 */ + { "ror", 2, flUseLabel, OH_Direct }, /* $66 */ + { "rmb6", 1, flUseLabel, OH_Direct, }, /* $67 */ + { "pla", 1, flNone, OH_Implicit }, /* $68 */ + { "adc", 2, flNone, OH_Immidiate }, /* $69 */ + { "ror", 1, flNone, OH_Accumulator }, /* $6a */ + { "", 1, flIllegal, OH_Illegal, }, /* $6b */ + { "jmp", 3, flLabel, OH_JmpAbsoluteIndirect }, /* $6c */ + { "adc", 3, flUseLabel, OH_Absolute }, /* $6d */ + { "ror", 3, flUseLabel, OH_Absolute }, /* $6e */ + { "bbr6", 3, flUseLabel, OH_BitBranch }, /* $6f */ + { "bvs", 2, flLabel, OH_Relative }, /* $70 */ + { "adc", 2, flUseLabel, OH_DirectIndirectY }, /* $71 */ + { "adc", 2, flUseLabel, OH_DirectIndirect, }, /* $72 */ + { "", 1, flIllegal, OH_Illegal, }, /* $73 */ + { "stz", 2, flUseLabel, OH_DirectX }, /* $74 */ + { "adc", 2, flUseLabel, OH_DirectX }, /* $75 */ + { "ror", 2, flUseLabel, OH_DirectX }, /* $76 */ + { "rmb7", 1, flUseLabel, OH_Direct, }, /* $77 */ + { "sei", 1, flNone, OH_Implicit }, /* $78 */ + { "adc", 3, flUseLabel, OH_AbsoluteY }, /* $79 */ + { "ply", 1, flNone, OH_Implicit }, /* $7a */ + { "", 1, flIllegal, OH_Illegal, }, /* $7b */ + { "jmp", 3, flLabel, OH_AbsoluteXIndirect }, /* $7c */ + { "adc", 3, flUseLabel, OH_AbsoluteX }, /* $7d */ + { "ror", 3, flUseLabel, OH_AbsoluteX }, /* $7e */ + { "bbr7", 3, flUseLabel, OH_BitBranch }, /* $7f */ + { "bra", 2, flLabel, OH_Relative }, /* $80 */ + { "sta", 2, flUseLabel, OH_DirectXIndirect }, /* $81 */ + { "", 1, flIllegal, OH_Illegal, }, /* $82 */ + { "", 1, flIllegal, OH_Illegal, }, /* $83 */ + { "sty", 2, flUseLabel, OH_Direct }, /* $84 */ + { "sta", 2, flUseLabel, OH_Direct }, /* $85 */ + { "stx", 2, flUseLabel, OH_Direct }, /* $86 */ + { "smb0", 1, flUseLabel, OH_Direct, }, /* $87 */ + { "dey", 1, flNone, OH_Implicit }, /* $88 */ + { "bit", 2, flNone, OH_Immidiate }, /* $89 */ + { "txa", 1, flNone, OH_Implicit }, /* $8a */ + { "", 1, flIllegal, OH_Illegal, }, /* $8b */ + { "sty", 3, flUseLabel, OH_Absolute }, /* $8c */ + { "sta", 3, flUseLabel, OH_Absolute }, /* $8d */ + { "stx", 3, flUseLabel, OH_Absolute }, /* $8e */ + { "bbs0", 3, flUseLabel, OH_BitBranch }, /* $8f */ + { "bcc", 2, flLabel, OH_Relative }, /* $90 */ + { "sta", 2, flUseLabel, OH_DirectIndirectY }, /* $91 */ + { "sta", 2, flUseLabel, OH_DirectIndirect }, /* $92 */ + { "", 1, flIllegal, OH_Illegal, }, /* $93 */ + { "sty", 2, flUseLabel, OH_DirectX }, /* $94 */ + { "sta", 2, flUseLabel, OH_DirectX }, /* $95 */ + { "stx", 2, flUseLabel, OH_DirectY }, /* $96 */ + { "smb1", 1, flUseLabel, OH_Direct, }, /* $97 */ + { "tya", 1, flNone, OH_Implicit }, /* $98 */ + { "sta", 3, flUseLabel, OH_AbsoluteY }, /* $99 */ + { "txs", 1, flNone, OH_Implicit }, /* $9a */ + { "", 1, flIllegal, OH_Illegal, }, /* $9b */ + { "stz", 3, flUseLabel, OH_Absolute }, /* $9c */ + { "sta", 3, flUseLabel, OH_AbsoluteX }, /* $9d */ + { "stz", 3, flUseLabel, OH_AbsoluteX }, /* $9e */ + { "bbs1", 3, flUseLabel, OH_BitBranch }, /* $9f */ + { "ldy", 2, flNone, OH_Immidiate }, /* $a0 */ + { "lda", 2, flUseLabel, OH_DirectXIndirect }, /* $a1 */ + { "ldx", 2, flNone, OH_Immidiate }, /* $a2 */ + { "", 1, flIllegal, OH_Illegal, }, /* $a3 */ + { "ldy", 2, flUseLabel, OH_Direct }, /* $a4 */ + { "lda", 2, flUseLabel, OH_Direct }, /* $a5 */ + { "ldx", 2, flUseLabel, OH_Direct }, /* $a6 */ + { "smb2", 1, flUseLabel, OH_Direct, }, /* $a7 */ + { "tay", 1, flNone, OH_Implicit }, /* $a8 */ + { "lda", 2, flNone, OH_Immidiate }, /* $a9 */ + { "tax", 1, flNone, OH_Implicit }, /* $aa */ + { "", 1, flIllegal, OH_Illegal, }, /* $ab */ + { "ldy", 3, flUseLabel, OH_Absolute }, /* $ac */ + { "lda", 3, flUseLabel, OH_Absolute }, /* $ad */ + { "ldx", 3, flUseLabel, OH_Absolute }, /* $ae */ + { "bbs2", 3, flUseLabel, OH_BitBranch }, /* $af */ + { "bcs", 2, flLabel, OH_Relative }, /* $b0 */ + { "lda", 2, flUseLabel, OH_DirectIndirectY }, /* $b1 */ + { "lda", 2, flUseLabel, OH_DirectIndirect }, /* $b2 */ + { "", 1, flIllegal, OH_Illegal, }, /* $b3 */ + { "ldy", 2, flUseLabel, OH_DirectX }, /* $b4 */ + { "lda", 2, flUseLabel, OH_DirectX }, /* $b5 */ + { "ldx", 2, flUseLabel, OH_DirectY }, /* $b6 */ + { "smb3", 1, flUseLabel, OH_Direct, }, /* $b7 */ + { "clv", 1, flNone, OH_Implicit }, /* $b8 */ + { "lda", 3, flUseLabel, OH_AbsoluteY }, /* $b9 */ + { "tsx", 1, flNone, OH_Implicit }, /* $ba */ + { "", 1, flIllegal, OH_Illegal, }, /* $bb */ + { "ldy", 3, flUseLabel, OH_AbsoluteX }, /* $bc */ + { "lda", 3, flUseLabel, OH_AbsoluteX }, /* $bd */ + { "ldx", 3, flUseLabel, OH_AbsoluteY }, /* $be */ + { "bbs3", 3, flUseLabel, OH_BitBranch }, /* $bf */ + { "cpy", 2, flNone, OH_Immidiate }, /* $c0 */ + { "cmp", 2, flUseLabel, OH_DirectXIndirect }, /* $c1 */ + { "", 1, flIllegal, OH_Illegal, }, /* $c2 */ + { "", 1, flIllegal, OH_Illegal, }, /* $c3 */ + { "cpy", 2, flUseLabel, OH_Direct }, /* $c4 */ + { "cmp", 2, flUseLabel, OH_Direct }, /* $c5 */ + { "dec", 2, flUseLabel, OH_Direct }, /* $c6 */ + { "smb4", 1, flUseLabel, OH_Direct, }, /* $c7 */ + { "iny", 1, flNone, OH_Implicit }, /* $c8 */ + { "cmp", 2, flNone, OH_Immidiate }, /* $c9 */ + { "dex", 1, flNone, OH_Implicit }, /* $ca */ + { "", 1, flIllegal, OH_Illegal, }, /* $cb */ + { "cpy", 3, flUseLabel, OH_Absolute }, /* $cc */ + { "cmp", 3, flUseLabel, OH_Absolute }, /* $cd */ + { "dec", 3, flUseLabel, OH_Absolute }, /* $ce */ + { "bbs4", 3, flUseLabel, OH_BitBranch }, /* $cf */ + { "bne", 2, flLabel, OH_Relative }, /* $d0 */ + { "cmp", 2, flUseLabel, OH_DirectXIndirect }, /* $d1 */ + { "cmp", 2, flUseLabel, OH_DirectIndirect }, /* $d2 */ + { "", 1, flIllegal, OH_Illegal, }, /* $d3 */ + { "pei", 2, flUseLabel, OH_Direct }, /* $d4 */ + { "cmp", 2, flUseLabel, OH_DirectX }, /* $d5 */ + { "dec", 2, flUseLabel, OH_DirectX }, /* $d6 */ + { "smb5", 1, flUseLabel, OH_Direct, }, /* $d7 */ + { "cld", 1, flNone, OH_Implicit }, /* $d8 */ + { "cmp", 3, flUseLabel, OH_AbsoluteY }, /* $d9 */ + { "phx", 1, flNone, OH_Implicit }, /* $da */ + { "", 1, flIllegal, OH_Illegal, }, /* $db */ + { "", 1, flIllegal, OH_Illegal, }, /* $dc */ + { "cmp", 3, flUseLabel, OH_AbsoluteX }, /* $dd */ + { "dec", 3, flUseLabel, OH_AbsoluteX }, /* $de */ + { "bbs5", 3, flUseLabel, OH_BitBranch }, /* $df */ + { "cpx", 2, flNone, OH_Immidiate }, /* $e0 */ + { "sbc", 2, flUseLabel, OH_DirectXIndirect }, /* $e1 */ + { "", 1, flIllegal, OH_Illegal, }, /* $e2 */ + { "", 1, flIllegal, OH_Illegal, }, /* $e3 */ + { "cpx", 2, flUseLabel, OH_Direct }, /* $e4 */ + { "sbc", 2, flUseLabel, OH_Direct }, /* $e5 */ + { "inc", 2, flUseLabel, OH_Direct }, /* $e6 */ + { "smb6", 1, flUseLabel, OH_Direct, }, /* $e7 */ + { "inx", 1, flNone, OH_Implicit }, /* $e8 */ + { "sbc", 2, flNone, OH_Immidiate }, /* $e9 */ + { "nop", 1, flNone, OH_Implicit }, /* $ea */ + { "", 1, flIllegal, OH_Illegal, }, /* $eb */ + { "cpx", 3, flUseLabel, OH_Absolute }, /* $ec */ + { "sbc", 3, flUseLabel, OH_Absolute }, /* $ed */ + { "inc", 3, flUseLabel, OH_Absolute }, /* $ee */ + { "bbs6", 3, flUseLabel, OH_BitBranch }, /* $ef */ + { "beq", 2, flLabel, OH_Relative }, /* $f0 */ + { "sbc", 2, flUseLabel, OH_DirectIndirectY }, /* $f1 */ + { "sbc", 2, flUseLabel, OH_DirectIndirect }, /* $f2 */ + { "", 1, flIllegal, OH_Illegal, }, /* $f3 */ + { "", 1, flIllegal, OH_Illegal, }, /* $f4 */ + { "sbc", 2, flUseLabel, OH_DirectX }, /* $f5 */ + { "inc", 2, flUseLabel, OH_DirectX }, /* $f6 */ + { "smb7", 1, flUseLabel, OH_Direct, }, /* $f7 */ + { "sed", 1, flNone, OH_Implicit }, /* $f8 */ + { "sbc", 3, flUseLabel, OH_AbsoluteY }, /* $f9 */ + { "plx", 1, flNone, OH_Implicit }, /* $fa */ + { "", 1, flIllegal, OH_Illegal, }, /* $fb */ + { "", 1, flIllegal, OH_Illegal, }, /* $fc */ + { "sbc", 3, flUseLabel, OH_AbsoluteX }, /* $fd */ + { "inc", 3, flUseLabel, OH_AbsoluteX }, /* $fe */ + { "bbs7", 3, flUseLabel, OH_BitBranch }, /* $ff */ }; diff --git a/src/da65/opc65sc02.c b/src/da65/opc65sc02.c index cf0522ad2..14698037c 100644 --- a/src/da65/opc65sc02.c +++ b/src/da65/opc65sc02.c @@ -47,262 +47,262 @@ /* Descriptions for all opcodes */ const OpcDesc OpcTable_65SC02[256] = { - { "brk", 1, 0, CPU_6502, OH_Implicit }, /* $00 */ - { "ora", 2, lfUseLabel, CPU_6502, OH_DirectXIndirect }, /* $01 */ - { "cop", 2, 0, CPU_65816, OH_Implicit }, /* $02 */ - { "ora", 2, 0, CPU_65816, OH_StackRelative }, /* $03 */ - { "tsb", 2, lfUseLabel, CPU_65816, OH_Direct }, /* $04 */ - { "ora", 2, lfUseLabel, CPU_6502, OH_Direct }, /* $05 */ - { "asl", 2, lfUseLabel, CPU_6502, OH_Direct }, /* $06 */ - { "ora", 2, lfUseLabel, CPU_65816, OH_DirectIndirectLong }, /* $07 */ - { "php", 1, 0, CPU_6502, OH_Implicit }, /* $08 */ - { "ora", 2, 0, CPU_6502, OH_Immidiate }, /* $09 */ - { "asl", 1, 0, CPU_6502, OH_Accumulator }, /* $0a */ - { "phd", 1, 0, CPU_65816, OH_Implicit }, /* $0b */ - { "tsb", 3, lfUseLabel, CPU_65816, OH_Absolute }, /* $0c */ - { "ora", 3, lfUseLabel, CPU_6502, OH_Absolute }, /* $0d */ - { "asl", 3, lfUseLabel, CPU_6502, OH_Absolute }, /* $0e */ - { "ora", 4, lfUseLabel, CPU_65816, OH_AbsoluteLong }, /* $0f */ - { "bpl", 2, lfLabel, CPU_6502, OH_Relative }, /* $10 */ - { "ora", 2, lfUseLabel, CPU_6502, OH_DirectIndirectY }, /* $11 */ - { "ora", 2, lfUseLabel, CPU_65816, OH_DirectIndirect }, /* $12 */ - { "ora", 2, 0, CPU_65816, OH_StackRelativeIndirectY}, /* $13 */ - { "trb", 2, lfUseLabel, CPU_65816, OH_Direct }, /* $14 */ - { "ora", 2, lfUseLabel, CPU_6502, OH_DirectX }, /* $15 */ - { "asl", 2, lfUseLabel, CPU_6502, OH_DirectX }, /* $16 */ - { "ora", 2, lfUseLabel, CPU_65816, OH_DirectIndirectLongY }, /* $17 */ - { "clc", 1, 0, CPU_6502, OH_Implicit }, /* $18 */ - { "ora", 3, lfUseLabel, CPU_6502, OH_AbsoluteY }, /* $19 */ - { "inc", 1, 0, CPU_65816, OH_Accumulator }, /* $1a */ - { "tcs", 1, 0, CPU_65816, OH_Implicit }, /* $1b */ - { "trb", 3, lfUseLabel, CPU_65816, OH_Absolute }, /* $1c */ - { "ora", 3, lfUseLabel, CPU_6502, OH_AbsoluteX }, /* $1d */ - { "asl", 3, lfUseLabel, CPU_6502, OH_AbsoluteX }, /* $1e */ - { "ora", 4, lfUseLabel, CPU_65816, OH_AbsoluteLongX }, /* $1f */ - { "jsr", 3, lfLabel, CPU_6502, OH_Absolute }, /* $20 */ - { "and", 2, lfUseLabel, CPU_6502, OH_DirectXIndirect }, /* $21 */ - { "jsl", 3, lfLabel, CPU_65816, OH_AbsoluteLong }, /* $22 */ - { "and", 2, 0, CPU_65816, OH_StackRelative }, /* $23 */ - { "bit", 2, lfUseLabel, CPU_6502, OH_Direct }, /* $24 */ - { "and", 2, lfUseLabel, CPU_6502, OH_Direct }, /* $25 */ - { "rol", 2, lfUseLabel, CPU_6502, OH_Direct }, /* $26 */ - { "and", 2, lfUseLabel, CPU_65816, OH_DirectIndirectLong }, /* $27 */ - { "plp", 1, 0, CPU_6502, OH_Implicit }, /* $28 */ - { "and", 2, 0, CPU_6502, OH_Immidiate }, /* $29 */ - { "rol", 1, 0, CPU_6502, OH_Accumulator }, /* $2a */ - { "pld", 1, 0, CPU_65816, OH_Implicit }, /* $2b */ - { "bit", 3, lfUseLabel, CPU_6502, OH_Absolute }, /* $2c */ - { "and", 3, lfUseLabel, CPU_6502, OH_Absolute }, /* $2d */ - { "rol", 3, lfUseLabel, CPU_6502, OH_Absolute }, /* $2e */ - { "and", 4, lfUseLabel, CPU_65816, OH_AbsoluteLong }, /* $2f */ - { "bmi", 2, lfLabel, CPU_6502, OH_Relative }, /* $30 */ - { "and", 2, lfUseLabel, CPU_6502, OH_DirectIndirectY }, /* $31 */ - { "and", 2, lfUseLabel, CPU_65816, OH_DirectIndirect }, /* $32 */ - { "and", 2, 0, CPU_65816, OH_StackRelativeIndirectY}, /* $33 */ - { "bit", 2, lfUseLabel, CPU_65816, OH_DirectX }, /* $34 */ - { "and", 2, lfUseLabel, CPU_6502, OH_DirectX }, /* $35 */ - { "rol", 2, lfUseLabel, CPU_6502, OH_DirectX }, /* $36 */ - { "and", 2, lfUseLabel, CPU_65816, OH_DirectIndirectLongY }, /* $37 */ - { "sec", 1, 0, CPU_6502, OH_Implicit }, /* $38 */ - { "and", 3, lfUseLabel, CPU_6502, OH_AbsoluteY }, /* $39 */ - { "dec", 1, 0, CPU_65816, OH_Accumulator }, /* $3a */ - { "tsc", 1, 0, CPU_65816, OH_Implicit }, /* $3b */ - { "bit", 3, lfUseLabel, CPU_65816, OH_AbsoluteX }, /* $3c */ - { "and", 3, lfUseLabel, CPU_6502, OH_AbsoluteX }, /* $3d */ - { "rol", 3, lfUseLabel, CPU_6502, OH_AbsoluteX }, /* $3e */ - { "and", 4, lfUseLabel, CPU_65816, OH_AbsoluteLongX }, /* $3f */ - { "rti", 1, 0, CPU_6502, OH_Rts }, /* $40 */ - { "eor", 2, lfUseLabel, CPU_6502, OH_DirectXIndirect }, /* $41 */ - { "wdm", 2, 0, CPU_65816, OH_Implicit }, /* $42 */ - { "eor", 2, 0, CPU_65816, OH_StackRelative }, /* $43 */ - { "mvp", 3, 0, CPU_65816, OH_BlockMove }, /* $44 */ - { "eor", 2, lfUseLabel, CPU_6502, OH_Direct }, /* $45 */ - { "lsr", 2, lfUseLabel, CPU_6502, OH_Direct }, /* $46 */ - { "eor", 2, lfUseLabel, CPU_65816, OH_DirectIndirectLong }, /* $47 */ - { "pha", 1, 0, CPU_6502, OH_Implicit }, /* $48 */ - { "eor", 2, 0, CPU_6502, OH_Immidiate }, /* $49 */ - { "lsr", 1, 0, CPU_6502, OH_Accumulator }, /* $4a */ - { "phk", 1, 0, CPU_65816, OH_Implicit }, /* $4b */ - { "jmp", 3, lfLabel, CPU_6502, OH_JmpAbsolute }, /* $4c */ - { "eor", 3, lfUseLabel, CPU_6502, OH_Absolute }, /* $4d */ - { "lsr", 3, lfUseLabel, CPU_6502, OH_Absolute }, /* $4e */ - { "eor", 4, lfUseLabel, CPU_65816, OH_AbsoluteLong }, /* $4f */ - { "bvc", 2, lfLabel, CPU_6502, OH_Relative }, /* $50 */ - { "eor", 2, lfUseLabel, CPU_6502, OH_DirectIndirectY }, /* $51 */ - { "eor", 2, lfUseLabel, CPU_65816, OH_DirectIndirect }, /* $52 */ - { "eor", 2, 0, CPU_65816, OH_StackRelativeIndirectY}, /* $53 */ - { "mvn", 3, 0, CPU_65816, OH_BlockMove }, /* $54 */ - { "eor", 2, lfUseLabel, CPU_6502, OH_DirectX }, /* $55 */ - { "lsr", 2, lfUseLabel, CPU_6502, OH_DirectX }, /* $56 */ - { "eor", 2, lfUseLabel, CPU_65816, OH_DirectIndirectLongY }, /* $57 */ - { "cli", 1, 0, CPU_6502, OH_Implicit }, /* $58 */ - { "eor", 3, lfUseLabel, CPU_6502, OH_AbsoluteY }, /* $59 */ - { "phy", 1, 0, CPU_65816, OH_Implicit }, /* $5a */ - { "tcd", 1, 0, CPU_65816, OH_Implicit }, /* $5b */ - { "jml", 4, lfLabel, CPU_65816, OH_AbsoluteLong }, /* $5c */ - { "eor", 3, lfUseLabel, CPU_6502, OH_AbsoluteX }, /* $5d */ - { "lsr", 3, lfUseLabel, CPU_6502, OH_AbsoluteX }, /* $5e */ - { "eor", 4, lfUseLabel, CPU_65816, OH_AbsoluteLongX }, /* $5f */ - { "rts", 1, 0, CPU_6502, OH_Rts }, /* $60 */ - { "adc", 2, lfUseLabel, CPU_6502, OH_DirectXIndirect }, /* $61 */ - { "per", 3, lfLabel, CPU_65816, OH_RelativeLong }, /* $62 */ - { "adc", 2, 0, CPU_65816, OH_StackRelative }, /* $63 */ - { "stz", 2, lfUseLabel, CPU_65816, OH_Direct }, /* $64 */ - { "adc", 2, lfUseLabel, CPU_6502, OH_Direct }, /* $65 */ - { "ror", 2, lfUseLabel, CPU_6502, OH_Direct }, /* $66 */ - { "adc", 2, lfUseLabel, CPU_65816, OH_DirectIndirectLong }, /* $67 */ - { "pla", 1, 0, CPU_6502, OH_Implicit }, /* $68 */ - { "adc", 2, 0, CPU_6502, OH_Immidiate }, /* $69 */ - { "ror", 1, 0, CPU_6502, OH_Accumulator }, /* $6a */ - { "rtl", 1, 0, CPU_65816, OH_Implicit }, /* $6b */ - { "jmp", 3, lfLabel, CPU_6502, OH_JmpAbsoluteIndirect }, /* $6c */ - { "adc", 3, lfUseLabel, CPU_6502, OH_Absolute }, /* $6d */ - { "ror", 3, lfUseLabel, CPU_6502, OH_Absolute }, /* $6e */ - { "adc", 4, lfUseLabel, CPU_65816, OH_AbsoluteLong }, /* $6f */ - { "bvs", 2, lfLabel, CPU_6502, OH_Relative }, /* $70 */ - { "adc", 2, lfUseLabel, CPU_6502, OH_DirectIndirectY }, /* $71 */ - { "adc", 2, lfUseLabel, CPU_65816, OH_DirectIndirect }, /* $72 */ - { "adc", 2, 0, CPU_65816, OH_StackRelativeIndirectY}, /* $73 */ - { "stz", 2, lfUseLabel, CPU_65816, OH_DirectX }, /* $74 */ - { "adc", 2, lfUseLabel, CPU_6502, OH_DirectX }, /* $75 */ - { "ror", 2, lfUseLabel, CPU_6502, OH_DirectX }, /* $76 */ - { "adc", 2, lfUseLabel, CPU_65816, OH_DirectIndirectLongY }, /* $77 */ - { "sei", 1, 0, CPU_6502, OH_Implicit }, /* $78 */ - { "adc", 3, lfUseLabel, CPU_6502, OH_AbsoluteY }, /* $79 */ - { "ply", 1, 0, CPU_65816, OH_Implicit }, /* $7a */ - { "tdc", 1, 0, CPU_65816, OH_Implicit }, /* $7b */ - { "jmp", 3, lfLabel, CPU_65816, OH_AbsoluteXIndirect }, /* $7c */ - { "adc", 3, lfUseLabel, CPU_6502, OH_AbsoluteX }, /* $7d */ - { "ror", 3, lfUseLabel, CPU_6502, OH_AbsoluteX }, /* $7e */ - { "adc", 4, lfUseLabel, CPU_65816, OH_AbsoluteLongX }, /* $7f */ - { "bra", 2, lfLabel, CPU_65816, OH_Relative }, /* $80 */ - { "sta", 2, lfUseLabel, CPU_6502, OH_DirectXIndirect }, /* $81 */ - { "brl", 3, lfLabel, CPU_65816, OH_RelativeLong }, /* $82 */ - { "sta", 2, 0, CPU_65816, OH_StackRelative }, /* $83 */ - { "sty", 2, lfUseLabel, CPU_6502, OH_Direct }, /* $84 */ - { "sta", 2, lfUseLabel, CPU_6502, OH_Direct }, /* $85 */ - { "stx", 2, lfUseLabel, CPU_6502, OH_Direct }, /* $86 */ - { "sta", 2, lfUseLabel, CPU_65816, OH_DirectIndirectLong }, /* $87 */ - { "dey", 1, 0, CPU_6502, OH_Implicit }, /* $88 */ - { "bit", 2, 0, CPU_65816, OH_Immidiate }, /* $89 */ - { "txa", 1, 0, CPU_6502, OH_Implicit }, /* $8a */ - { "phb", 1, 0, CPU_65816, OH_Implicit }, /* $8b */ - { "sty", 3, lfUseLabel, CPU_6502, OH_Absolute }, /* $8c */ - { "sta", 3, lfUseLabel, CPU_6502, OH_Absolute }, /* $8d */ - { "stx", 3, lfUseLabel, CPU_6502, OH_Absolute }, /* $8e */ - { "sta", 4, lfUseLabel, CPU_65816, OH_AbsoluteLong }, /* $8f */ - { "bcc", 2, lfLabel, CPU_6502, OH_Relative }, /* $90 */ - { "sta", 2, lfUseLabel, CPU_6502, OH_DirectIndirectY }, /* $91 */ - { "sta", 2, lfUseLabel, CPU_65816, OH_DirectIndirect }, /* $92 */ - { "sta", 2, 0, CPU_65816, OH_StackRelativeIndirectY}, /* $93 */ - { "sty", 2, lfUseLabel, CPU_6502, OH_DirectX }, /* $94 */ - { "sta", 2, lfUseLabel, CPU_6502, OH_DirectX }, /* $95 */ - { "stx", 2, lfUseLabel, CPU_6502, OH_DirectY }, /* $96 */ - { "sta", 2, lfUseLabel, CPU_65816, OH_DirectIndirectLongY }, /* $97 */ - { "tya", 1, 0, CPU_6502, OH_Implicit }, /* $98 */ - { "sta", 3, lfUseLabel, CPU_6502, OH_AbsoluteY }, /* $99 */ - { "txs", 1, 0, CPU_6502, OH_Implicit }, /* $9a */ - { "txy", 1, 0, CPU_65816, OH_Implicit }, /* $9b */ - { "stz", 3, lfUseLabel, CPU_65816, OH_Absolute }, /* $9c */ - { "sta", 3, lfUseLabel, CPU_6502, OH_AbsoluteX }, /* $9d */ - { "stz", 3, lfUseLabel, CPU_65816, OH_AbsoluteX }, /* $9e */ - { "sta", 4, lfUseLabel, CPU_65816, OH_AbsoluteLongX }, /* $9f */ - { "ldy", 2, 0, CPU_6502, OH_Immidiate }, /* $a0 */ - { "lda", 2, lfUseLabel, CPU_6502, OH_DirectXIndirect }, /* $a1 */ - { "ldx", 2, 0, CPU_6502, OH_Immidiate }, /* $a2 */ - { "lda", 2, 0, CPU_65816, OH_StackRelative }, /* $a3 */ - { "ldy", 2, lfUseLabel, CPU_6502, OH_Direct }, /* $a4 */ - { "lda", 2, lfUseLabel, CPU_6502, OH_Direct }, /* $a5 */ - { "ldx", 2, lfUseLabel, CPU_6502, OH_Direct }, /* $a6 */ - { "lda", 2, lfUseLabel, CPU_65816, OH_DirectIndirectLong }, /* $a7 */ - { "tay", 1, 0, CPU_6502, OH_Implicit }, /* $a8 */ - { "lda", 2, 0, CPU_6502, OH_Immidiate }, /* $a9 */ - { "tax", 1, 0, CPU_6502, OH_Implicit }, /* $aa */ - { "plb", 1, 0, CPU_65816, OH_Implicit }, /* $ab */ - { "ldy", 3, lfUseLabel, CPU_6502, OH_Absolute }, /* $ac */ - { "lda", 3, lfUseLabel, CPU_6502, OH_Absolute }, /* $ad */ - { "ldx", 3, lfUseLabel, CPU_6502, OH_Absolute }, /* $ae */ - { "lda", 4, lfUseLabel, CPU_65816, OH_AbsoluteLong }, /* $af */ - { "bcs", 2, lfLabel, CPU_6502, OH_Relative }, /* $b0 */ - { "lda", 2, lfUseLabel, CPU_6502, OH_DirectIndirectY }, /* $b1 */ - { "lda", 2, lfUseLabel, CPU_65816, OH_DirectIndirect }, /* $b2 */ - { "lda", 2, 0, CPU_65816, OH_StackRelativeIndirectY}, /* $b3 */ - { "ldy", 2, lfUseLabel, CPU_6502, OH_DirectX }, /* $b4 */ - { "lda", 2, lfUseLabel, CPU_6502, OH_DirectX }, /* $b5 */ - { "ldx", 2, lfUseLabel, CPU_6502, OH_DirectY }, /* $b6 */ - { "lda", 2, lfUseLabel, CPU_65816, OH_DirectIndirectLongY }, /* $b7 */ - { "clv", 1, 0, CPU_6502, OH_Implicit }, /* $b8 */ - { "lda", 3, lfUseLabel, CPU_6502, OH_AbsoluteY }, /* $b9 */ - { "tsx", 1, 0, CPU_6502, OH_Implicit }, /* $ba */ - { "tyx", 1, 0, CPU_65816, OH_Implicit }, /* $bb */ - { "ldy", 3, lfUseLabel, CPU_6502, OH_AbsoluteX }, /* $bc */ - { "lda", 3, lfUseLabel, CPU_6502, OH_AbsoluteX }, /* $bd */ - { "ldx", 3, lfUseLabel, CPU_6502, OH_AbsoluteY }, /* $be */ - { "lda", 4, lfUseLabel, CPU_65816, OH_AbsoluteLongX }, /* $bf */ - { "cpy", 2, 0, CPU_6502, OH_Immidiate }, /* $c0 */ - { "cmp", 2, lfUseLabel, CPU_6502, OH_DirectXIndirect }, /* $c1 */ - { "rep", 2, 0, CPU_65816, OH_Immidiate }, /* $c2 */ - { "cmp", 2, 0, CPU_65816, OH_StackRelative }, /* $c3 */ - { "cpy", 2, lfUseLabel, CPU_6502, OH_Direct }, /* $c4 */ - { "cmp", 2, lfUseLabel, CPU_6502, OH_Direct }, /* $c5 */ - { "dec", 2, lfUseLabel, CPU_6502, OH_Direct }, /* $c6 */ - { "cmp", 2, lfUseLabel, CPU_65816, OH_DirectIndirectLong }, /* $c7 */ - { "iny", 1, 0, CPU_6502, OH_Implicit }, /* $c8 */ - { "cmp", 2, 0, CPU_6502, OH_Immidiate }, /* $c9 */ - { "dex", 1, 0, CPU_6502, OH_Implicit }, /* $ca */ - { "wai", 1, 0, CPU_65816, OH_Implicit }, /* $cb */ - { "cpy", 3, lfUseLabel, CPU_6502, OH_Absolute }, /* $cc */ - { "cmp", 3, lfUseLabel, CPU_6502, OH_Absolute }, /* $cd */ - { "dec", 3, lfUseLabel, CPU_6502, OH_Absolute }, /* $ce */ - { "cmp", 4, lfUseLabel, CPU_65816, OH_AbsoluteLong }, /* $cf */ - { "bne", 2, lfLabel, CPU_6502, OH_Relative }, /* $d0 */ - { "cmp", 2, lfUseLabel, CPU_6502, OH_DirectXIndirect }, /* $d1 */ - { "cmp", 2, lfUseLabel, CPU_65816, OH_DirectIndirect }, /* $d2 */ - { "cmp", 2, 0, CPU_65816, OH_StackRelativeIndirectY}, /* $d3 */ - { "pei", 2, lfUseLabel, CPU_65816, OH_Direct }, /* $d4 */ - { "cmp", 2, lfUseLabel, CPU_6502, OH_DirectX }, /* $d5 */ - { "dec", 2, lfUseLabel, CPU_6502, OH_DirectX }, /* $d6 */ - { "cmp", 2, lfUseLabel, CPU_65816, OH_DirectIndirectLongY }, /* $d7 */ - { "cld", 1, 0, CPU_6502, OH_Implicit }, /* $d8 */ - { "cmp", 3, lfUseLabel, CPU_6502, OH_AbsoluteY }, /* $d9 */ - { "phx", 1, 0, CPU_65816, OH_Implicit }, /* $da */ - { "stp", 1, 0, CPU_65816, OH_Implicit }, /* $db */ - { "jml", 3, lfLabel, CPU_65816, OH_AbsoluteIndirect }, /* $dc */ - { "cmp", 3, lfUseLabel, CPU_6502, OH_AbsoluteX }, /* $dd */ - { "dec", 3, lfUseLabel, CPU_6502, OH_AbsoluteX }, /* $de */ - { "cmp", 4, lfUseLabel, CPU_65816, OH_AbsoluteLongX }, /* $df */ - { "cpx", 2, 0, CPU_6502, OH_Immidiate }, /* $e0 */ - { "sbc", 2, lfUseLabel, CPU_6502, OH_DirectXIndirect }, /* $e1 */ - { "sep", 2, 0, CPU_65816, OH_Immidiate }, /* $e2 */ - { "sbc", 2, 0, CPU_65816, OH_StackRelative }, /* $e3 */ - { "cpx", 2, lfUseLabel, CPU_6502, OH_Direct }, /* $e4 */ - { "sbc", 2, lfUseLabel, CPU_6502, OH_Direct }, /* $e5 */ - { "inc", 2, lfUseLabel, CPU_6502, OH_Direct }, /* $e6 */ - { "sbc", 2, lfUseLabel, CPU_65816, OH_DirectIndirectLong }, /* $e7 */ - { "inx", 1, 0, CPU_6502, OH_Implicit }, /* $e8 */ - { "sbc", 2, 0, CPU_6502, OH_Immidiate }, /* $e9 */ - { "nop", 1, 0, CPU_6502, OH_Implicit }, /* $ea */ - { "xba", 1, 0, CPU_65816, OH_Implicit }, /* $eb */ - { "cpx", 3, lfUseLabel, CPU_6502, OH_Absolute }, /* $ec */ - { "sbc", 3, lfUseLabel, CPU_6502, OH_Absolute }, /* $ed */ - { "inc", 3, lfUseLabel, CPU_6502, OH_Absolute }, /* $ee */ - { "sbc", 4, lfUseLabel, CPU_65816, OH_AbsoluteLong }, /* $ef */ - { "beq", 2, lfLabel, CPU_6502, OH_Relative }, /* $f0 */ - { "sbc", 2, lfUseLabel, CPU_6502, OH_DirectIndirectY }, /* $f1 */ - { "sbc", 2, lfUseLabel, CPU_65816, OH_DirectIndirect }, /* $f2 */ - { "sbc", 2, 0, CPU_65816, OH_StackRelativeIndirectY}, /* $f3 */ - { "pea", 3, lfUseLabel, CPU_65816, OH_Absolute }, /* $f4 */ - { "sbc", 2, lfUseLabel, CPU_6502, OH_DirectX }, /* $f5 */ - { "inc", 2, lfUseLabel, CPU_6502, OH_DirectX }, /* $f6 */ - { "sbc", 2, lfUseLabel, CPU_65816, OH_DirectIndirectLongY }, /* $f7 */ - { "sed", 1, 0, CPU_6502, OH_Implicit }, /* $f8 */ - { "sbc", 3, lfUseLabel, CPU_6502, OH_AbsoluteY }, /* $f9 */ - { "plx", 1, 0, CPU_65816, OH_Implicit }, /* $fa */ - { "xce", 1, 0, CPU_65816, OH_Implicit }, /* $fb */ - { "jsr", 3, lfLabel, CPU_65816, OH_AbsoluteXIndirect }, /* $fc */ - { "sbc", 3, lfUseLabel, CPU_6502, OH_AbsoluteX }, /* $fd */ - { "inc", 3, lfUseLabel, CPU_6502, OH_AbsoluteX }, /* $fe */ - { "sbc", 4, lfUseLabel, CPU_65816, OH_AbsoluteLongX }, /* $ff */ + { "brk", 1, flNone, OH_Implicit }, /* $00 */ + { "ora", 2, flUseLabel, OH_DirectXIndirect }, /* $01 */ + { "", 1, flIllegal, OH_Illegal, }, /* $02 */ + { "", 1, flIllegal, OH_Illegal, }, /* $03 */ + { "tsb", 2, flUseLabel, OH_Direct }, /* $04 */ + { "ora", 2, flUseLabel, OH_Direct }, /* $05 */ + { "asl", 2, flUseLabel, OH_Direct }, /* $06 */ + { "", 1, flIllegal, OH_Illegal, }, /* $07 */ + { "php", 1, flNone, OH_Implicit }, /* $08 */ + { "ora", 2, flNone, OH_Immidiate }, /* $09 */ + { "asl", 1, flNone, OH_Accumulator }, /* $0a */ + { "", 1, flIllegal, OH_Illegal, }, /* $0b */ + { "tsb", 3, flUseLabel, OH_Absolute }, /* $0c */ + { "ora", 3, flUseLabel, OH_Absolute }, /* $0d */ + { "asl", 3, flUseLabel, OH_Absolute }, /* $0e */ + { "", 1, flIllegal, OH_Illegal, }, /* $0f */ + { "bpl", 2, flLabel, OH_Relative }, /* $10 */ + { "ora", 2, flUseLabel, OH_DirectIndirectY }, /* $11 */ + { "ora", 2, flUseLabel, OH_DirectIndirect }, /* $12 */ + { "", 1, flIllegal, OH_Illegal, }, /* $13 */ + { "trb", 2, flUseLabel, OH_Direct }, /* $14 */ + { "ora", 2, flUseLabel, OH_DirectX }, /* $15 */ + { "asl", 2, flUseLabel, OH_DirectX }, /* $16 */ + { "", 1, flIllegal, OH_Illegal, }, /* $17 */ + { "clc", 1, flNone, OH_Implicit }, /* $18 */ + { "ora", 3, flUseLabel, OH_AbsoluteY }, /* $19 */ + { "inc", 1, flNone, OH_Accumulator }, /* $1a */ + { "", 1, flIllegal, OH_Illegal, }, /* $1b */ + { "trb", 3, flUseLabel, OH_Absolute }, /* $1c */ + { "ora", 3, flUseLabel, OH_AbsoluteX }, /* $1d */ + { "asl", 3, flUseLabel, OH_AbsoluteX }, /* $1e */ + { "", 1, flIllegal, OH_Illegal, }, /* $1f */ + { "jsr", 3, flLabel, OH_Absolute }, /* $20 */ + { "and", 2, flUseLabel, OH_DirectXIndirect }, /* $21 */ + { "", 1, flIllegal, OH_Illegal, }, /* $22 */ + { "", 1, flIllegal, OH_Illegal, }, /* $23 */ + { "bit", 2, flUseLabel, OH_Direct }, /* $24 */ + { "and", 2, flUseLabel, OH_Direct }, /* $25 */ + { "rol", 2, flUseLabel, OH_Direct }, /* $26 */ + { "", 1, flIllegal, OH_Illegal, }, /* $27 */ + { "plp", 1, flNone, OH_Implicit }, /* $28 */ + { "and", 2, flNone, OH_Immidiate }, /* $29 */ + { "rol", 1, flNone, OH_Accumulator }, /* $2a */ + { "", 1, flIllegal, OH_Illegal, }, /* $2b */ + { "bit", 3, flUseLabel, OH_Absolute }, /* $2c */ + { "and", 3, flUseLabel, OH_Absolute }, /* $2d */ + { "rol", 3, flUseLabel, OH_Absolute }, /* $2e */ + { "", 1, flIllegal, OH_Illegal, }, /* $2f */ + { "bmi", 2, flLabel, OH_Relative }, /* $30 */ + { "and", 2, flUseLabel, OH_DirectIndirectY }, /* $31 */ + { "and", 2, flUseLabel, OH_DirectIndirect, }, /* $32 */ + { "", 1, flIllegal, OH_Illegal, }, /* $33 */ + { "bit", 2, flUseLabel, OH_DirectX }, /* $34 */ + { "and", 2, flUseLabel, OH_DirectX }, /* $35 */ + { "rol", 2, flUseLabel, OH_DirectX }, /* $36 */ + { "", 1, flIllegal, OH_Illegal, }, /* $37 */ + { "sec", 1, flNone, OH_Implicit }, /* $38 */ + { "and", 3, flUseLabel, OH_AbsoluteY }, /* $39 */ + { "dec", 1, flNone, OH_Accumulator }, /* $3a */ + { "", 1, flIllegal, OH_Illegal, }, /* $3b */ + { "bit", 3, flUseLabel, OH_AbsoluteX }, /* $3c */ + { "and", 3, flUseLabel, OH_AbsoluteX }, /* $3d */ + { "rol", 3, flUseLabel, OH_AbsoluteX }, /* $3e */ + { "", 1, flIllegal, OH_Illegal, }, /* $3f */ + { "rti", 1, flNone, OH_Rts }, /* $40 */ + { "eor", 2, flUseLabel, OH_DirectXIndirect }, /* $41 */ + { "", 1, flIllegal, OH_Illegal, }, /* $42 */ + { "", 1, flIllegal, OH_Illegal, }, /* $43 */ + { "", 1, flIllegal, OH_Illegal, }, /* $44 */ + { "eor", 2, flUseLabel, OH_Direct }, /* $45 */ + { "lsr", 2, flUseLabel, OH_Direct }, /* $46 */ + { "", 1, flIllegal, OH_Illegal, }, /* $47 */ + { "pha", 1, flNone, OH_Implicit }, /* $48 */ + { "eor", 2, flNone, OH_Immidiate }, /* $49 */ + { "lsr", 1, flNone, OH_Accumulator }, /* $4a */ + { "", 1, flIllegal, OH_Illegal, }, /* $4b */ + { "jmp", 3, flLabel, OH_JmpAbsolute }, /* $4c */ + { "eor", 3, flUseLabel, OH_Absolute }, /* $4d */ + { "lsr", 3, flUseLabel, OH_Absolute }, /* $4e */ + { "", 1, flIllegal, OH_Illegal, }, /* $4f */ + { "bvc", 2, flLabel, OH_Relative }, /* $50 */ + { "eor", 2, flUseLabel, OH_DirectIndirectY }, /* $51 */ + { "eor", 2, flUseLabel, OH_DirectIndirect }, /* $52 */ + { "", 1, flIllegal, OH_Illegal, }, /* $53 */ + { "", 1, flIllegal, OH_Illegal, }, /* $54 */ + { "eor", 2, flUseLabel, OH_DirectX }, /* $55 */ + { "lsr", 2, flUseLabel, OH_DirectX }, /* $56 */ + { "", 1, flIllegal, OH_Illegal, }, /* $57 */ + { "cli", 1, flNone, OH_Implicit }, /* $58 */ + { "eor", 3, flUseLabel, OH_AbsoluteY }, /* $59 */ + { "phy", 1, flNone, OH_Implicit }, /* $5a */ + { "", 1, flIllegal, OH_Illegal, }, /* $5b */ + { "", 1, flIllegal, OH_Illegal, }, /* $5c */ + { "eor", 3, flUseLabel, OH_AbsoluteX }, /* $5d */ + { "lsr", 3, flUseLabel, OH_AbsoluteX }, /* $5e */ + { "", 1, flIllegal, OH_Illegal, }, /* $5f */ + { "rts", 1, flNone, OH_Rts }, /* $60 */ + { "adc", 2, flUseLabel, OH_DirectXIndirect }, /* $61 */ + { "", 1, flIllegal, OH_Illegal, }, /* $62 */ + { "", 1, flIllegal, OH_Illegal, }, /* $63 */ + { "stz", 2, flUseLabel, OH_Direct }, /* $64 */ + { "adc", 2, flUseLabel, OH_Direct }, /* $65 */ + { "ror", 2, flUseLabel, OH_Direct }, /* $66 */ + { "", 1, flIllegal, OH_Illegal, }, /* $67 */ + { "pla", 1, flNone, OH_Implicit }, /* $68 */ + { "adc", 2, flNone, OH_Immidiate }, /* $69 */ + { "ror", 1, flNone, OH_Accumulator }, /* $6a */ + { "", 1, flIllegal, OH_Illegal, }, /* $6b */ + { "jmp", 3, flLabel, OH_JmpAbsoluteIndirect }, /* $6c */ + { "adc", 3, flUseLabel, OH_Absolute }, /* $6d */ + { "ror", 3, flUseLabel, OH_Absolute }, /* $6e */ + { "", 1, flIllegal, OH_Illegal, }, /* $6f */ + { "bvs", 2, flLabel, OH_Relative }, /* $70 */ + { "adc", 2, flUseLabel, OH_DirectIndirectY }, /* $71 */ + { "adc", 2, flUseLabel, OH_DirectIndirect, }, /* $72 */ + { "", 1, flIllegal, OH_Illegal, }, /* $73 */ + { "stz", 2, flUseLabel, OH_DirectX }, /* $74 */ + { "adc", 2, flUseLabel, OH_DirectX }, /* $75 */ + { "ror", 2, flUseLabel, OH_DirectX }, /* $76 */ + { "", 1, flIllegal, OH_Illegal, }, /* $77 */ + { "sei", 1, flNone, OH_Implicit }, /* $78 */ + { "adc", 3, flUseLabel, OH_AbsoluteY }, /* $79 */ + { "ply", 1, flNone, OH_Implicit }, /* $7a */ + { "", 1, flIllegal, OH_Illegal, }, /* $7b */ + { "jmp", 3, flLabel, OH_AbsoluteXIndirect }, /* $7c */ + { "adc", 3, flUseLabel, OH_AbsoluteX }, /* $7d */ + { "ror", 3, flUseLabel, OH_AbsoluteX }, /* $7e */ + { "", 1, flIllegal, OH_Illegal, }, /* $7f */ + { "bra", 2, flLabel, OH_Relative }, /* $80 */ + { "sta", 2, flUseLabel, OH_DirectXIndirect }, /* $81 */ + { "", 1, flIllegal, OH_Illegal, }, /* $82 */ + { "", 1, flIllegal, OH_Illegal, }, /* $83 */ + { "sty", 2, flUseLabel, OH_Direct }, /* $84 */ + { "sta", 2, flUseLabel, OH_Direct }, /* $85 */ + { "stx", 2, flUseLabel, OH_Direct }, /* $86 */ + { "", 1, flIllegal, OH_Illegal, }, /* $87 */ + { "dey", 1, flNone, OH_Implicit }, /* $88 */ + { "bit", 2, flNone, OH_Immidiate }, /* $89 */ + { "txa", 1, flNone, OH_Implicit }, /* $8a */ + { "", 1, flIllegal, OH_Illegal, }, /* $8b */ + { "sty", 3, flUseLabel, OH_Absolute }, /* $8c */ + { "sta", 3, flUseLabel, OH_Absolute }, /* $8d */ + { "stx", 3, flUseLabel, OH_Absolute }, /* $8e */ + { "", 1, flIllegal, OH_Illegal, }, /* $8f */ + { "bcc", 2, flLabel, OH_Relative }, /* $90 */ + { "sta", 2, flUseLabel, OH_DirectIndirectY }, /* $91 */ + { "sta", 2, flUseLabel, OH_DirectIndirect }, /* $92 */ + { "", 1, flIllegal, OH_Illegal, }, /* $93 */ + { "sty", 2, flUseLabel, OH_DirectX }, /* $94 */ + { "sta", 2, flUseLabel, OH_DirectX }, /* $95 */ + { "stx", 2, flUseLabel, OH_DirectY }, /* $96 */ + { "", 1, flIllegal, OH_Illegal, }, /* $97 */ + { "tya", 1, flNone, OH_Implicit }, /* $98 */ + { "sta", 3, flUseLabel, OH_AbsoluteY }, /* $99 */ + { "txs", 1, flNone, OH_Implicit }, /* $9a */ + { "", 1, flIllegal, OH_Illegal, }, /* $9b */ + { "stz", 3, flUseLabel, OH_Absolute }, /* $9c */ + { "sta", 3, flUseLabel, OH_AbsoluteX }, /* $9d */ + { "stz", 3, flUseLabel, OH_AbsoluteX }, /* $9e */ + { "", 1, flIllegal, OH_Illegal, }, /* $9f */ + { "ldy", 2, flNone, OH_Immidiate }, /* $a0 */ + { "lda", 2, flUseLabel, OH_DirectXIndirect }, /* $a1 */ + { "ldx", 2, flNone, OH_Immidiate }, /* $a2 */ + { "", 1, flIllegal, OH_Illegal, }, /* $a3 */ + { "ldy", 2, flUseLabel, OH_Direct }, /* $a4 */ + { "lda", 2, flUseLabel, OH_Direct }, /* $a5 */ + { "ldx", 2, flUseLabel, OH_Direct }, /* $a6 */ + { "", 1, flIllegal, OH_Illegal, }, /* $a7 */ + { "tay", 1, flNone, OH_Implicit }, /* $a8 */ + { "lda", 2, flNone, OH_Immidiate }, /* $a9 */ + { "tax", 1, flNone, OH_Implicit }, /* $aa */ + { "", 1, flIllegal, OH_Illegal, }, /* $ab */ + { "ldy", 3, flUseLabel, OH_Absolute }, /* $ac */ + { "lda", 3, flUseLabel, OH_Absolute }, /* $ad */ + { "ldx", 3, flUseLabel, OH_Absolute }, /* $ae */ + { "", 1, flIllegal, OH_Illegal, }, /* $af */ + { "bcs", 2, flLabel, OH_Relative }, /* $b0 */ + { "lda", 2, flUseLabel, OH_DirectIndirectY }, /* $b1 */ + { "lda", 2, flUseLabel, OH_DirectIndirect }, /* $b2 */ + { "", 1, flIllegal, OH_Illegal, }, /* $b3 */ + { "ldy", 2, flUseLabel, OH_DirectX }, /* $b4 */ + { "lda", 2, flUseLabel, OH_DirectX }, /* $b5 */ + { "ldx", 2, flUseLabel, OH_DirectY }, /* $b6 */ + { "", 1, flIllegal, OH_Illegal, }, /* $b7 */ + { "clv", 1, flNone, OH_Implicit }, /* $b8 */ + { "lda", 3, flUseLabel, OH_AbsoluteY }, /* $b9 */ + { "tsx", 1, flNone, OH_Implicit }, /* $ba */ + { "", 1, flIllegal, OH_Illegal, }, /* $bb */ + { "ldy", 3, flUseLabel, OH_AbsoluteX }, /* $bc */ + { "lda", 3, flUseLabel, OH_AbsoluteX }, /* $bd */ + { "ldx", 3, flUseLabel, OH_AbsoluteY }, /* $be */ + { "", 1, flIllegal, OH_Illegal, }, /* $bf */ + { "cpy", 2, flNone, OH_Immidiate }, /* $c0 */ + { "cmp", 2, flUseLabel, OH_DirectXIndirect }, /* $c1 */ + { "", 1, flIllegal, OH_Illegal, }, /* $c2 */ + { "", 1, flIllegal, OH_Illegal, }, /* $c3 */ + { "cpy", 2, flUseLabel, OH_Direct }, /* $c4 */ + { "cmp", 2, flUseLabel, OH_Direct }, /* $c5 */ + { "dec", 2, flUseLabel, OH_Direct }, /* $c6 */ + { "", 1, flIllegal, OH_Illegal, }, /* $c7 */ + { "iny", 1, flNone, OH_Implicit }, /* $c8 */ + { "cmp", 2, flNone, OH_Immidiate }, /* $c9 */ + { "dex", 1, flNone, OH_Implicit }, /* $ca */ + { "", 1, flIllegal, OH_Illegal, }, /* $cb */ + { "cpy", 3, flUseLabel, OH_Absolute }, /* $cc */ + { "cmp", 3, flUseLabel, OH_Absolute }, /* $cd */ + { "dec", 3, flUseLabel, OH_Absolute }, /* $ce */ + { "", 1, flIllegal, OH_Illegal, }, /* $cf */ + { "bne", 2, flLabel, OH_Relative }, /* $d0 */ + { "cmp", 2, flUseLabel, OH_DirectXIndirect }, /* $d1 */ + { "cmp", 2, flUseLabel, OH_DirectIndirect }, /* $d2 */ + { "", 1, flIllegal, OH_Illegal, }, /* $d3 */ + { "pei", 2, flUseLabel, OH_Direct }, /* $d4 */ + { "cmp", 2, flUseLabel, OH_DirectX }, /* $d5 */ + { "dec", 2, flUseLabel, OH_DirectX }, /* $d6 */ + { "", 1, flIllegal, OH_Illegal, }, /* $d7 */ + { "cld", 1, flNone, OH_Implicit }, /* $d8 */ + { "cmp", 3, flUseLabel, OH_AbsoluteY }, /* $d9 */ + { "phx", 1, flNone, OH_Implicit }, /* $da */ + { "", 1, flIllegal, OH_Illegal, }, /* $db */ + { "", 1, flIllegal, OH_Illegal, }, /* $dc */ + { "cmp", 3, flUseLabel, OH_AbsoluteX }, /* $dd */ + { "dec", 3, flUseLabel, OH_AbsoluteX }, /* $de */ + { "", 1, flIllegal, OH_Illegal, }, /* $df */ + { "cpx", 2, flNone, OH_Immidiate }, /* $e0 */ + { "sbc", 2, flUseLabel, OH_DirectXIndirect }, /* $e1 */ + { "", 1, flIllegal, OH_Illegal, }, /* $e2 */ + { "", 1, flIllegal, OH_Illegal, }, /* $e3 */ + { "cpx", 2, flUseLabel, OH_Direct }, /* $e4 */ + { "sbc", 2, flUseLabel, OH_Direct }, /* $e5 */ + { "inc", 2, flUseLabel, OH_Direct }, /* $e6 */ + { "", 1, flIllegal, OH_Illegal, }, /* $e7 */ + { "inx", 1, flNone, OH_Implicit }, /* $e8 */ + { "sbc", 2, flNone, OH_Immidiate }, /* $e9 */ + { "nop", 1, flNone, OH_Implicit }, /* $ea */ + { "", 1, flIllegal, OH_Illegal, }, /* $eb */ + { "cpx", 3, flUseLabel, OH_Absolute }, /* $ec */ + { "sbc", 3, flUseLabel, OH_Absolute }, /* $ed */ + { "inc", 3, flUseLabel, OH_Absolute }, /* $ee */ + { "", 1, flIllegal, OH_Illegal, }, /* $ef */ + { "beq", 2, flLabel, OH_Relative }, /* $f0 */ + { "sbc", 2, flUseLabel, OH_DirectIndirectY }, /* $f1 */ + { "sbc", 2, flUseLabel, OH_DirectIndirect }, /* $f2 */ + { "", 1, flIllegal, OH_Illegal, }, /* $f3 */ + { "", 1, flIllegal, OH_Illegal, }, /* $f4 */ + { "sbc", 2, flUseLabel, OH_DirectX }, /* $f5 */ + { "inc", 2, flUseLabel, OH_DirectX }, /* $f6 */ + { "", 1, flIllegal, OH_Illegal, }, /* $f7 */ + { "sed", 1, flNone, OH_Implicit }, /* $f8 */ + { "sbc", 3, flUseLabel, OH_AbsoluteY }, /* $f9 */ + { "plx", 1, flNone, OH_Implicit }, /* $fa */ + { "", 1, flIllegal, OH_Illegal, }, /* $fb */ + { "", 1, flIllegal, OH_Illegal, }, /* $fc */ + { "sbc", 3, flUseLabel, OH_AbsoluteX }, /* $fd */ + { "inc", 3, flUseLabel, OH_AbsoluteX }, /* $fe */ + { "", 1, flIllegal, OH_Illegal, }, /* $ff */ }; diff --git a/src/da65/opcdesc.h b/src/da65/opcdesc.h index a570624a2..7ad161adf 100644 --- a/src/da65/opcdesc.h +++ b/src/da65/opcdesc.h @@ -44,12 +44,14 @@ -/* Constants for LabelFlag */ +/* Constants for Flags */ enum { - lfNoLabel = 0x00, /* Don't use a label */ - lfGenLabel = 0x01, /* Generate a label */ - lfUseLabel = 0x02, /* Use a label if there is one */ - lfLabel = lfUseLabel|lfGenLabel /* Generate and use a label */ + flNone = 0x00, /* No flags given */ + flNoLabel = 0x00, /* Don't use a label */ + flGenLabel = 0x01, /* Generate a label */ + flUseLabel = 0x02, /* Use a label if there is one */ + flLabel = flUseLabel|flGenLabel,/* Generate and use a label */ + flIllegal = 0x10 /* Illegal instruction */ }; /* Forward/typedef for struct OpcDesc */ @@ -60,10 +62,9 @@ typedef void (*OpcHandler) (const OpcDesc*); /* Description for one opcode */ struct OpcDesc { - char Mnemo [5]; /* Mnemonic */ + char Mnemo [6]; /* Mnemonic */ unsigned char Size; /* Size of this command */ - unsigned char LabelFlag; /* Generate/use label? */ - unsigned char CPU; /* Available for which CPU? */ + unsigned char Flags; /* Flags */ OpcHandler Handler; /* Handler routine */ };