From 4205a04a34caae838fba8daee65269aac87ecf26 Mon Sep 17 00:00:00 2001 From: Zsolt Branyiczky Date: Mon, 16 Nov 2020 22:15:47 +0100 Subject: [PATCH 01/11] 6502DTV is not a superset of 6502X more --- src/common/cpu.c | 2 +- src/common/cpu.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/cpu.c b/src/common/cpu.c index 16578543b..b55a5ab00 100644 --- a/src/common/cpu.c +++ b/src/common/cpu.c @@ -70,7 +70,7 @@ const unsigned CPUIsets[CPU_COUNT] = { CPU_ISET_NONE, CPU_ISET_6502, CPU_ISET_6502 | CPU_ISET_6502X, - CPU_ISET_6502 | CPU_ISET_6502X | CPU_ISET_6502DTV, + CPU_ISET_6502 | CPU_ISET_6502DTV, 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 706b4544e..2e75feaaf 100644 --- a/src/common/cpu.h +++ b/src/common/cpu.h @@ -50,7 +50,7 @@ typedef enum { CPU_NONE, /* No CPU - for assembler */ CPU_6502, CPU_6502X, /* "Extended", that is: with illegal opcodes */ - CPU_6502DTV, /* CPU_6502X + C64DTV extra opcodes */ + CPU_6502DTV, /* CPU_6502 + DTV extra and illegal opcodes */ CPU_65SC02, CPU_65C02, CPU_65816, From 130d3b52a245897b84aa7423a75b3e32301d70eb Mon Sep 17 00:00:00 2001 From: Zsolt Branyiczky Date: Mon, 16 Nov 2020 22:16:14 +0100 Subject: [PATCH 02/11] new macros supporting 6502DTV cpu --- doc/ca65.sgml | 21 ++++++++++++++++++++- src/ca65/condasm.c | 11 +++++++++++ src/ca65/pseudo.c | 10 ++++++++++ src/ca65/scanner.c | 2 ++ src/ca65/token.h | 2 ++ 5 files changed, 45 insertions(+), 1 deletion(-) diff --git a/doc/ca65.sgml b/doc/ca65.sgml index 25a47b29a..9f45f8c54 100644 --- a/doc/ca65.sgml +++ b/doc/ca65.sgml @@ -419,6 +419,8 @@ The assembler accepts command was given). all valid 6502 mnemonics plus a set of illegal instructions when in . +all valid 6502DTV mnemonics when in 6502DTV mode (after the + command was given). all valid 65SC02 mnemonics when in 65SC02 mode (after the command was given). all valid 65C02 mnemonics when in 65C02 mode (after the @@ -3153,6 +3155,12 @@ Here's a list of all control commands and a description, what they do: (see command). +.IFPDTV