mirror of
https://github.com/cc65/cc65.git
synced 2026-01-22 17:16:21 +00:00
enable 4510/45GS02 in the compiler - however, the resulting asm files cant be assembled because of sp vs c_sp clash
This commit is contained in:
@@ -197,9 +197,9 @@ ifeq ($(TARGET),$(filter $(TARGET),$(GEOS)))
|
||||
endif
|
||||
|
||||
ifeq ($(TARGET),c65)
|
||||
# FIXME: the compiler does not work for 4510 yet
|
||||
# FIXME: this does not work because of the SP vs C_SP clash
|
||||
else ifeq ($(TARGET),mega65)
|
||||
# FIXME: the compiler does not work for 45GS02 yet
|
||||
# FIXME: this does not work because of the SP vs C_SP clash
|
||||
else
|
||||
SRCDIRS += common \
|
||||
conio \
|
||||
|
||||
@@ -348,7 +348,6 @@ static void DefineCpuMacros (void)
|
||||
case CPU_NONE:
|
||||
case CPU_SWEET16:
|
||||
case CPU_M740:
|
||||
case CPU_4510:
|
||||
case CPU_UNKNOWN:
|
||||
CPUName = (CPU == CPU_UNKNOWN)? "unknown" : CPUNames[CPU];
|
||||
Internal ("Invalid CPU \"%s\"", CPUName);
|
||||
@@ -382,6 +381,14 @@ static void DefineCpuMacros (void)
|
||||
DefineNumericMacro ("__CPU_HUC6280__", 1);
|
||||
break;
|
||||
|
||||
case CPU_4510:
|
||||
DefineNumericMacro ("__CPU_4510__", 1);
|
||||
break;
|
||||
|
||||
case CPU_45GS02:
|
||||
DefineNumericMacro ("__CPU_45GS02__", 1);
|
||||
break;
|
||||
|
||||
default:
|
||||
FAIL ("Unexpected value in switch");
|
||||
break;
|
||||
@@ -397,6 +404,8 @@ static void DefineCpuMacros (void)
|
||||
DefineNumericMacro ("__CPU_ISET_65C02__", CPU_ISET_65C02);
|
||||
DefineNumericMacro ("__CPU_ISET_65816__", CPU_ISET_65816);
|
||||
DefineNumericMacro ("__CPU_ISET_HUC6280__", CPU_ISET_HUC6280);
|
||||
DefineNumericMacro ("__CPU_ISET_4510__", CPU_ISET_4510);
|
||||
DefineNumericMacro ("__CPU_ISET_45GS02__", CPU_ISET_45GS02);
|
||||
|
||||
/* Now define the macro that contains the bit set with the available
|
||||
** cpu instructions.
|
||||
|
||||
Reference in New Issue
Block a user