1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-02 04:41:35 +00:00

Add target atari7800

This commit is contained in:
Karri Kaksonen 2022-03-01 06:44:55 +02:00 committed by mrdudz
parent 89716ac831
commit e653204ffe
11 changed files with 24 additions and 0 deletions

View File

@ -27,6 +27,7 @@ including
- the Atari 8-bit machines. - the Atari 8-bit machines.
- the Atari 2600 console. - the Atari 2600 console.
- the Atari 5200 console. - the Atari 5200 console.
- the Atari 7800 console.
- GEOS for the C64, C128 and Apple //e. - GEOS for the C64, C128 and Apple //e.
- the Bit Corporation Gamate console. - the Bit Corporation Gamate console.
- the NEC PC-Engine (aka TurboGrafx-16) console. - the NEC PC-Engine (aka TurboGrafx-16) console.

View File

@ -4763,6 +4763,7 @@ compiler, depending on the target system selected:
<item><tt/__APPLE2ENH__/ - Target system is <tt/apple2enh/ <item><tt/__APPLE2ENH__/ - Target system is <tt/apple2enh/
<item><tt/__ATARI2600__/ - Target system is <tt/atari2600/ <item><tt/__ATARI2600__/ - Target system is <tt/atari2600/
<item><tt/__ATARI5200__/ - Target system is <tt/atari5200/ <item><tt/__ATARI5200__/ - Target system is <tt/atari5200/
<item><tt/__ATARI7800__/ - Target system is <tt/atari7800/
<item><tt/__ATARI__/ - Target system is <tt/atari/ or <tt/atarixl/ <item><tt/__ATARI__/ - Target system is <tt/atari/ or <tt/atarixl/
<item><tt/__ATARIXL__/ - Target system is <tt/atarixl/ <item><tt/__ATARIXL__/ - Target system is <tt/atarixl/
<item><tt/__ATMOS__/ - Target system is <tt/atmos/ <item><tt/__ATMOS__/ - Target system is <tt/atmos/

View File

@ -124,6 +124,9 @@
<tag><htmlurl url="atari5200.html" name="atari5200.html"></tag> <tag><htmlurl url="atari5200.html" name="atari5200.html"></tag>
Topics specific to the Atari 5200 Game Console. Topics specific to the Atari 5200 Game Console.
<tag><htmlurl url="atari7800.html" name="atari7800.html"></tag>
Topics specific to the Atari 7800 Game Console.
<tag><htmlurl url="atmos.html" name="atmos.html"></tag> <tag><htmlurl url="atmos.html" name="atmos.html"></tag>
Topics specific to the Oric Atmos. Topics specific to the Oric Atmos.

View File

@ -166,6 +166,7 @@ Here is a description of all of the command-line options:
<item>apple2 <item>apple2
<item>apple2enh <item>apple2enh
<item>atari2600 <item>atari2600
<item>atari7800
<item>atari <item>atari
<item>atarixl <item>atarixl
<item>atmos <item>atmos

View File

@ -43,6 +43,8 @@
# include <atari2600.h> # include <atari2600.h>
#elif defined(__ATARI5200__) #elif defined(__ATARI5200__)
# include <atari5200.h> # include <atari5200.h>
#elif defined(__ATARI7800__)
# include <atari7800.h>
#elif defined(__ATMOS__) #elif defined(__ATMOS__)
# include <atmos.h> # include <atmos.h>
#elif defined(__CBM__) #elif defined(__CBM__)

View File

@ -21,6 +21,7 @@ TARGETS = apple2 \
atarixl \ atarixl \
atari2600 \ atari2600 \
atari5200 \ atari5200 \
atari7800 \
atmos \ atmos \
creativision \ creativision \
$(CBMS) \ $(CBMS) \

View File

@ -212,6 +212,10 @@ static void SetSys (const char* Sys)
NewSymbol ("__ATARI5200__", 1); NewSymbol ("__ATARI5200__", 1);
break; break;
case TGT_ATARI7800:
NewSymbol ("__ATARI7800__", 1);
break;
case TGT_ATARI: case TGT_ATARI:
NewSymbol ("__ATARI__", 1); NewSymbol ("__ATARI__", 1);
break; break;

View File

@ -173,6 +173,10 @@ static void SetSys (const char* Sys)
DefineNumericMacro ("__ATARI5200__", 1); DefineNumericMacro ("__ATARI5200__", 1);
break; break;
case TGT_ATARI7800:
DefineNumericMacro ("__ATARI7800__", 1);
break;
case TGT_ATARI: case TGT_ATARI:
DefineNumericMacro ("__ATARI__", 1); DefineNumericMacro ("__ATARI__", 1);
break; break;

View File

@ -147,6 +147,7 @@ static const TargetEntry TargetMap[] = {
{ "atari", TGT_ATARI }, { "atari", TGT_ATARI },
{ "atari2600", TGT_ATARI2600 }, { "atari2600", TGT_ATARI2600 },
{ "atari5200", TGT_ATARI5200 }, { "atari5200", TGT_ATARI5200 },
{ "atari7800", TGT_ATARI7800 },
{ "atarixl", TGT_ATARIXL }, { "atarixl", TGT_ATARIXL },
{ "atmos", TGT_ATMOS }, { "atmos", TGT_ATMOS },
{ "bbc", TGT_BBC }, { "bbc", TGT_BBC },
@ -188,6 +189,7 @@ static const TargetProperties PropertyTable[TGT_COUNT] = {
{ "atari", CPU_6502, BINFMT_BINARY, CTAtari }, { "atari", CPU_6502, BINFMT_BINARY, CTAtari },
{ "atari2600", CPU_6502, BINFMT_BINARY, CTNone }, { "atari2600", CPU_6502, BINFMT_BINARY, CTNone },
{ "atari5200", CPU_6502, BINFMT_BINARY, CTAtari }, { "atari5200", CPU_6502, BINFMT_BINARY, CTAtari },
{ "atari7800", CPU_6502, BINFMT_BINARY, CTNone },
{ "atarixl", CPU_6502, BINFMT_BINARY, CTAtari }, { "atarixl", CPU_6502, BINFMT_BINARY, CTAtari },
{ "vic20", CPU_6502, BINFMT_BINARY, CTPET }, { "vic20", CPU_6502, BINFMT_BINARY, CTPET },
{ "c16", CPU_6502, BINFMT_BINARY, CTPET }, { "c16", CPU_6502, BINFMT_BINARY, CTPET },

View File

@ -57,6 +57,7 @@ typedef enum {
TGT_ATARI, TGT_ATARI,
TGT_ATARI2600, TGT_ATARI2600,
TGT_ATARI5200, TGT_ATARI5200,
TGT_ATARI7800,
TGT_ATARIXL, TGT_ATARIXL,
TGT_VIC20, TGT_VIC20,
TGT_C16, TGT_C16,

View File

@ -673,6 +673,9 @@ EXELIST_atari2600 = \
EXELIST_atari5200 = \ EXELIST_atari5200 = \
minimal minimal
EXELIST_atari7800 = \
minimal
EXELIST_gamate = \ EXELIST_gamate = \
minimal minimal
@ -728,6 +731,7 @@ TARGETS := \
atarixl \ atarixl \
atari2600 \ atari2600 \
atari5200 \ atari5200 \
atari7800 \
atmos \ atmos \
bbc \ bbc \
c128 \ c128 \