From a7b84bb618390cceb87d0062abb4fd28a38a365c Mon Sep 17 00:00:00 2001 From: Oliver Schmidt
- - Enable the SunPlus instructions set. This command will not work in the - freeware version of the assembler, because the instruction set is - "proprietary and confidential". - - See: , , , and - - - .TAG Allocate space for a struct or union. @@ -4365,7 +4346,6 @@ each supported CPU a constant similar to CPU_65SC02 CPU_65C02 CPU_65816 - CPU_SUNPLUS CPU_SWEET16 CPU_HUC6280 @@ -4379,7 +4359,6 @@ another constant is defined: CPU_ISET_65SC02 CPU_ISET_65C02 CPU_ISET_65816 - CPU_ISET_SUNPLUS CPU_ISET_SWEET16 CPU_ISET_HUC6280 diff --git a/src/ca65/instr.c b/src/ca65/instr.c index 277676614..777affdee 100644 --- a/src/ca65/instr.c +++ b/src/ca65/instr.c @@ -585,11 +585,6 @@ static const struct { } }; -#ifdef SUNPLUS -/* Table for the SUNPLUS CPU */ -#include "sunplus.inc" -#endif - /* Instruction table for the SWEET16 pseudo CPU */ static const struct { unsigned Count; @@ -781,11 +776,6 @@ static const InsTable* InsTabs[CPU_COUNT] = { (const InsTable*) &InsTab65SC02, (const InsTable*) &InsTab65C02, (const InsTable*) &InsTab65816, -#ifdef SUNPLUS - (const InsTable*) &InsTabSunPlus, -#else - 0, -#endif (const InsTable*) &InsTabSweet16, (const InsTable*) &InsTabHuC6280, 0, /* Mitsubishi 740 */ diff --git a/src/ca65/pseudo.c b/src/ca65/pseudo.c index 5c534b29c..3af192610 100644 --- a/src/ca65/pseudo.c +++ b/src/ca65/pseudo.c @@ -1810,14 +1810,6 @@ static void DoSmart (void) -static void DoSunPlus (void) -/* Switch to the SUNPLUS CPU */ -{ - SetCPU (CPU_SUNPLUS); -} - - - static void DoTag (void) /* Allocate space for a struct */ { @@ -2093,7 +2085,6 @@ static CtrlDesc CtrlCmdTab [] = { { ccNone, DoUnexpected }, /* .STRING */ { ccNone, DoUnexpected }, /* .STRLEN */ { ccNone, DoStruct }, - { ccNone, DoSunPlus }, { ccNone, DoTag }, { ccNone, DoUnexpected }, /* .TCOUNT */ { ccNone, DoUnexpected }, /* .TIME */ diff --git a/src/ca65/scanner.c b/src/ca65/scanner.c index aadb91d54..1a1127778 100644 --- a/src/ca65/scanner.c +++ b/src/ca65/scanner.c @@ -276,7 +276,6 @@ struct DotKeyword { { ".STRING", TOK_STRING }, { ".STRLEN", TOK_STRLEN }, { ".STRUCT", TOK_STRUCT }, - { ".SUNPLUS", TOK_SUNPLUS }, { ".TAG", TOK_TAG }, { ".TCOUNT", TOK_TCOUNT }, { ".TIME", TOK_TIME }, diff --git a/src/ca65/token.h b/src/ca65/token.h index 5214771fd..6499a14bd 100644 --- a/src/ca65/token.h +++ b/src/ca65/token.h @@ -244,7 +244,6 @@ typedef enum token_t { TOK_STRING, TOK_STRLEN, TOK_STRUCT, - TOK_SUNPLUS, TOK_TAG, TOK_TCOUNT, TOK_TIME, diff --git a/src/common/cpu.c b/src/common/cpu.c index 59353a6a1..7b61ccdcc 100644 --- a/src/common/cpu.c +++ b/src/common/cpu.c @@ -58,7 +58,6 @@ const char* CPUNames[CPU_COUNT] = { "65SC02", "65C02", "65816", - "sunplus", "sweet16", "huc6280", "m740", @@ -72,7 +71,6 @@ const unsigned CPUIsets[CPU_COUNT] = { 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, - CPU_ISET_SUNPLUS, CPU_ISET_SWEET16, CPU_ISET_6502 | CPU_ISET_65SC02 | CPU_ISET_65C02 | CPU_ISET_HUC6280, CPU_ISET_6502 | CPU_ISET_M740, diff --git a/src/common/cpu.h b/src/common/cpu.h index 424053cf9..121a54b7a 100644 --- a/src/common/cpu.h +++ b/src/common/cpu.h @@ -53,7 +53,6 @@ typedef enum { CPU_65SC02, CPU_65C02, CPU_65816, - CPU_SUNPLUS, /* Not in the freeware version - sorry */ CPU_SWEET16, CPU_HUC6280, /* Used in PC engine */ CPU_M740, /* Mitsubishi 740 series MCUs */ @@ -68,7 +67,6 @@ enum { CPU_ISET_65SC02 = 1 << CPU_65SC02, CPU_ISET_65C02 = 1 << CPU_65C02, CPU_ISET_65816 = 1 << CPU_65816, - CPU_ISET_SUNPLUS = 1 << CPU_SUNPLUS, CPU_ISET_SWEET16 = 1 << CPU_SWEET16, CPU_ISET_HUC6280 = 1 << CPU_HUC6280, CPU_ISET_M740 = 1 << CPU_M740, -- 2.39.5
Allocate space for a struct or union. @@ -4365,7 +4346,6 @@ each supported CPU a constant similar to CPU_65SC02 CPU_65C02 CPU_65816 - CPU_SUNPLUS CPU_SWEET16 CPU_HUC6280 @@ -4379,7 +4359,6 @@ another constant is defined: CPU_ISET_65SC02 CPU_ISET_65C02 CPU_ISET_65816 - CPU_ISET_SUNPLUS CPU_ISET_SWEET16 CPU_ISET_HUC6280 diff --git a/src/ca65/instr.c b/src/ca65/instr.c index 277676614..777affdee 100644 --- a/src/ca65/instr.c +++ b/src/ca65/instr.c @@ -585,11 +585,6 @@ static const struct { } }; -#ifdef SUNPLUS -/* Table for the SUNPLUS CPU */ -#include "sunplus.inc" -#endif - /* Instruction table for the SWEET16 pseudo CPU */ static const struct { unsigned Count; @@ -781,11 +776,6 @@ static const InsTable* InsTabs[CPU_COUNT] = { (const InsTable*) &InsTab65SC02, (const InsTable*) &InsTab65C02, (const InsTable*) &InsTab65816, -#ifdef SUNPLUS - (const InsTable*) &InsTabSunPlus, -#else - 0, -#endif (const InsTable*) &InsTabSweet16, (const InsTable*) &InsTabHuC6280, 0, /* Mitsubishi 740 */ diff --git a/src/ca65/pseudo.c b/src/ca65/pseudo.c index 5c534b29c..3af192610 100644 --- a/src/ca65/pseudo.c +++ b/src/ca65/pseudo.c @@ -1810,14 +1810,6 @@ static void DoSmart (void) -static void DoSunPlus (void) -/* Switch to the SUNPLUS CPU */ -{ - SetCPU (CPU_SUNPLUS); -} - - - static void DoTag (void) /* Allocate space for a struct */ { @@ -2093,7 +2085,6 @@ static CtrlDesc CtrlCmdTab [] = { { ccNone, DoUnexpected }, /* .STRING */ { ccNone, DoUnexpected }, /* .STRLEN */ { ccNone, DoStruct }, - { ccNone, DoSunPlus }, { ccNone, DoTag }, { ccNone, DoUnexpected }, /* .TCOUNT */ { ccNone, DoUnexpected }, /* .TIME */ diff --git a/src/ca65/scanner.c b/src/ca65/scanner.c index aadb91d54..1a1127778 100644 --- a/src/ca65/scanner.c +++ b/src/ca65/scanner.c @@ -276,7 +276,6 @@ struct DotKeyword { { ".STRING", TOK_STRING }, { ".STRLEN", TOK_STRLEN }, { ".STRUCT", TOK_STRUCT }, - { ".SUNPLUS", TOK_SUNPLUS }, { ".TAG", TOK_TAG }, { ".TCOUNT", TOK_TCOUNT }, { ".TIME", TOK_TIME }, diff --git a/src/ca65/token.h b/src/ca65/token.h index 5214771fd..6499a14bd 100644 --- a/src/ca65/token.h +++ b/src/ca65/token.h @@ -244,7 +244,6 @@ typedef enum token_t { TOK_STRING, TOK_STRLEN, TOK_STRUCT, - TOK_SUNPLUS, TOK_TAG, TOK_TCOUNT, TOK_TIME, diff --git a/src/common/cpu.c b/src/common/cpu.c index 59353a6a1..7b61ccdcc 100644 --- a/src/common/cpu.c +++ b/src/common/cpu.c @@ -58,7 +58,6 @@ const char* CPUNames[CPU_COUNT] = { "65SC02", "65C02", "65816", - "sunplus", "sweet16", "huc6280", "m740", @@ -72,7 +71,6 @@ const unsigned CPUIsets[CPU_COUNT] = { 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, - CPU_ISET_SUNPLUS, CPU_ISET_SWEET16, CPU_ISET_6502 | CPU_ISET_65SC02 | CPU_ISET_65C02 | CPU_ISET_HUC6280, CPU_ISET_6502 | CPU_ISET_M740, diff --git a/src/common/cpu.h b/src/common/cpu.h index 424053cf9..121a54b7a 100644 --- a/src/common/cpu.h +++ b/src/common/cpu.h @@ -53,7 +53,6 @@ typedef enum { CPU_65SC02, CPU_65C02, CPU_65816, - CPU_SUNPLUS, /* Not in the freeware version - sorry */ CPU_SWEET16, CPU_HUC6280, /* Used in PC engine */ CPU_M740, /* Mitsubishi 740 series MCUs */ @@ -68,7 +67,6 @@ enum { CPU_ISET_65SC02 = 1 << CPU_65SC02, CPU_ISET_65C02 = 1 << CPU_65C02, CPU_ISET_65816 = 1 << CPU_65816, - CPU_ISET_SUNPLUS = 1 << CPU_SUNPLUS, CPU_ISET_SWEET16 = 1 << CPU_SWEET16, CPU_ISET_HUC6280 = 1 << CPU_HUC6280, CPU_ISET_M740 = 1 << CPU_M740, -- 2.39.5