]> git.sur5r.net Git - cc65/commitdiff
Added CPU_6502X for 6502 with illegal opcodes
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sun, 9 May 2004 21:06:36 +0000 (21:06 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sun, 9 May 2004 21:06:36 +0000 (21:06 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@3016 b7a2c559-68d2-44c3-8de9-860c34a00d81

src/common/cpu.c
src/common/cpu.h

index 33432d29f5b2c5c80ee140bbd377f52cdaa85675..d83ab53db7d3d38db715fae074d3b97b29ddefdf 100644 (file)
@@ -6,7 +6,7 @@
 /*                                                                           */
 /*                                                                           */
 /*                                                                           */
-/* (C) 2003      Ullrich von Bassewitz                                       */
+/* (C) 2003-2004 Ullrich von Bassewitz                                       */
 /*               Römerstrasse 52                                             */
 /*               D-70794 Filderstadt                                         */
 /* EMail:        uz@cc65.org                                                 */
@@ -52,6 +52,7 @@ cpu_t CPU = CPU_UNKNOWN;
 /* Table with target names */
 const char* CPUNames[CPU_COUNT] = {
     "6502",
+    "6502X",
     "65SC02",
     "65C02",
     "65816",
@@ -61,6 +62,7 @@ const char* CPUNames[CPU_COUNT] = {
 /* Tables with CPU instruction sets */
 const unsigned CPUIsets[CPU_COUNT] = {
     CPU_ISET_6502,
+    CPU_ISET_6502 | CPU_ISET_6502X,
     CPU_ISET_6502 | CPU_ISET_65SC02,
     CPU_ISET_6502 | CPU_ISET_65SC02 | CPU_ISET_65C02,
     CPU_ISET_6502 | CPU_ISET_65SC02 | CPU_ISET_65C02 | CPU_ISET_65816,
index f7347d30ce4a3286a316b689cd533aa6c452289f..e0f3387da49884b1d2f778928471c69c9653c926 100644 (file)
@@ -6,7 +6,7 @@
 /*                                                                           */
 /*                                                                           */
 /*                                                                           */
-/* (C) 2003      Ullrich von Bassewitz                                       */
+/* (C) 2003-2004 Ullrich von Bassewitz                                       */
 /*               Römerstrasse 52                                             */
 /*               D-70794 Filderstadt                                         */
 /* EMail:        uz@cc65.org                                                 */
@@ -48,6 +48,7 @@
 typedef enum {
     CPU_UNKNOWN = -1,           /* Not specified or invalid target */
     CPU_6502,
+    CPU_6502X,                  /* "Extended", that is: with illegal opcodes */
     CPU_65SC02,
     CPU_65C02,
     CPU_65816,
@@ -58,6 +59,7 @@ typedef enum {
 /* CPU instruction sets */
 enum {
     CPU_ISET_6502       = 1 << CPU_6502,
+    CPU_ISET_6502X      = 1 << CPU_6502X,
     CPU_ISET_65SC02     = 1 << CPU_65SC02,
     CPU_ISET_65C02      = 1 << CPU_65C02,
     CPU_ISET_65816      = 1 << CPU_65816,