diff --git a/CONFIG.md b/CONFIG.md index 53ad6421..c1f56871 100644 --- a/CONFIG.md +++ b/CONFIG.md @@ -74,6 +74,10 @@ Choose if your CPU supports the Commodore Semiconductor Group 65CE02 instruction It enables some speed/size code optimizations. +### `CONFIG_CPU_M65_45GS02` + +Choose if you have a Mega65 FPGA board. + ### `CONFIG_CPU_WDC_65816` Choose if your CPU supports the 16-bit Western Design Center 65816 instruction set, like: diff --git a/c64/,,config_custom.s b/c64/,,config_custom.s index 192d682a..95bfda75 100644 --- a/c64/,,config_custom.s +++ b/c64/,,config_custom.s @@ -33,6 +33,7 @@ #define CONFIG_CPU_MOS_6502 // #define CONFIG_CPU_WDC_65C02 // #define CONFIG_CPU_CSG_65CE02 +// #define CONFIG_CPU_M65_45GS02 // #define CONFIG_CPU_WDC_65816 diff --git a/c64/,,config_generic.s b/c64/,,config_generic.s index 84cd3ea7..4195ef46 100644 --- a/c64/,,config_generic.s +++ b/c64/,,config_generic.s @@ -30,6 +30,7 @@ #define CONFIG_CPU_MOS_6502 // #define CONFIG_CPU_WDC_65C02 // #define CONFIG_CPU_CSG_65CE02 +// #define CONFIG_CPU_M65_45GS02 // #define CONFIG_CPU_WDC_65816 diff --git a/c64/,,config_mega65.s b/c64/,,config_mega65.s index 99a7306c..07259720 100644 --- a/c64/,,config_mega65.s +++ b/c64/,,config_mega65.s @@ -29,7 +29,8 @@ // #define CONFIG_CPU_MOS_6502 // #define CONFIG_CPU_WDC_65C02 -#define CONFIG_CPU_CSG_65CE02 +// #define CONFIG_CPU_CSG_65CE02 +#define CONFIG_CPU_M65_45GS02 // #define CONFIG_CPU_WDC_65816 diff --git a/c64/,,config_testing.s b/c64/,,config_testing.s index a3c38560..0f7a164f 100644 --- a/c64/,,config_testing.s +++ b/c64/,,config_testing.s @@ -30,6 +30,7 @@ #define CONFIG_CPU_MOS_6502 // #define CONFIG_CPU_WDC_65C02 // #define CONFIG_CPU_CSG_65CE02 +// #define CONFIG_CPU_M65_45GS02 // #define CONFIG_CPU_WDC_65816 diff --git a/c64/,,config_ultimate64.s b/c64/,,config_ultimate64.s index 07a981c0..f2927c60 100644 --- a/c64/,,config_ultimate64.s +++ b/c64/,,config_ultimate64.s @@ -30,6 +30,7 @@ #define CONFIG_CPU_MOS_6502 // #define CONFIG_CPU_WDC_65C02 // #define CONFIG_CPU_CSG_65CE02 +// #define CONFIG_CPU_M65_45GS02 // #define CONFIG_CPU_WDC_65816 diff --git a/c64/aliases/,aliases_config.s b/c64/aliases/,aliases_config.s index 4a375175..cfb0a39c 100644 --- a/c64/aliases/,aliases_config.s +++ b/c64/aliases/,aliases_config.s @@ -88,6 +88,9 @@ #if CONFIG_CPU_CSG_65CE02 .eval selected++ #endif +#if CONFIG_CPU_M65_45GS02 + .eval selected++ +#endif #if CONFIG_CPU_WDC_65816 .eval selected++ #endif diff --git a/c64/aliases/,aliases_cpu.s b/c64/aliases/,aliases_cpu.s index 023e7558..3e44405c 100644 --- a/c64/aliases/,aliases_cpu.s +++ b/c64/aliases/,aliases_cpu.s @@ -8,7 +8,7 @@ #define HAS_OPCODES_65C02 #endif -#if CONFIG_CPU_CSG_65CE02 +#if CONFIG_CPU_CSG_65CE02 || CONFIG_CPU_M65_45GS02 #define HAS_OPCODES_65CE02 #endif @@ -17,7 +17,7 @@ #endif -#if CONFIG_CPU_WDC_65C02 || CONFIG_CPU_CSG_65CE02 || CONFIG_CPU_WDC_65816 +#if CONFIG_CPU_WDC_65C02 || CONFIG_CPU_CSG_65CE02 || CONFIG_CPU_M65_45GS02 || CONFIG_CPU_WDC_65816 #define HAS_BCD_SAFE_INTERRUPTS #endif