From 1286c79d85cdb7fa6e8e06a434c6ab00395ad9b1 Mon Sep 17 00:00:00 2001 From: cuz Date: Sun, 9 May 2004 21:06:36 +0000 Subject: [PATCH] Added CPU_6502X for 6502 with illegal opcodes git-svn-id: svn://svn.cc65.org/cc65/trunk@3016 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/common/cpu.c | 4 +++- src/common/cpu.h | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/common/cpu.c b/src/common/cpu.c index 33432d29f..d83ab53db 100644 --- a/src/common/cpu.c +++ b/src/common/cpu.c @@ -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, diff --git a/src/common/cpu.h b/src/common/cpu.h index f7347d30c..e0f3387da 100644 --- a/src/common/cpu.h +++ b/src/common/cpu.h @@ -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,