New target: oric atmos
git-svn-id: svn://svn.cc65.org/cc65/trunk@1296 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -193,6 +193,10 @@ static void SetSys (const char* Sys)
|
|||||||
DefineNumericMacro ("__LUNIX__", 1);
|
DefineNumericMacro ("__LUNIX__", 1);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case TGT_ATMOS:
|
||||||
|
DefineNumericMacro ("__ATMOS__", 1);
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
AbEnd ("Unknown target system type");
|
AbEnd ("Unknown target system type");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -65,7 +65,8 @@ const char* TargetNames [TGT_COUNT] = {
|
|||||||
"bbc",
|
"bbc",
|
||||||
"apple2",
|
"apple2",
|
||||||
"geos",
|
"geos",
|
||||||
"lunix"
|
"lunix",
|
||||||
|
"atmos"
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@@ -105,3 +106,4 @@ target_t FindTarget (const char* Name)
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -61,6 +61,7 @@ typedef enum {
|
|||||||
TGT_APPLE2,
|
TGT_APPLE2,
|
||||||
TGT_GEOS,
|
TGT_GEOS,
|
||||||
TGT_LUNIX,
|
TGT_LUNIX,
|
||||||
|
TGT_ATMOS,
|
||||||
TGT_COUNT /* Number of target systems */
|
TGT_COUNT /* Number of target systems */
|
||||||
} target_t;
|
} target_t;
|
||||||
|
|
||||||
|
|||||||
@@ -154,6 +154,7 @@ void TgtTranslateInit (void)
|
|||||||
case TGT_APPLE2: memcpy (Tab, CTNone, sizeof (Tab)); break;
|
case TGT_APPLE2: memcpy (Tab, CTNone, sizeof (Tab)); break;
|
||||||
case TGT_GEOS: memcpy (Tab, CTNone, sizeof (Tab)); break;
|
case TGT_GEOS: memcpy (Tab, CTNone, sizeof (Tab)); break;
|
||||||
case TGT_LUNIX: memcpy (Tab, CTNone, sizeof (Tab)); break;
|
case TGT_LUNIX: memcpy (Tab, CTNone, sizeof (Tab)); break;
|
||||||
|
case TGT_ATMOS: memcpy (Tab, CTNone, sizeof (Tab)); break;
|
||||||
default:
|
default:
|
||||||
AbEnd ("Internal error: Target system unknown (%d)", Target);
|
AbEnd ("Internal error: Target system unknown (%d)", Target);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ ld65
|
|||||||
*.s
|
*.s
|
||||||
apple2.inc
|
apple2.inc
|
||||||
atari.inc
|
atari.inc
|
||||||
|
atmos.inc
|
||||||
bbc.inc
|
bbc.inc
|
||||||
c128.inc
|
c128.inc
|
||||||
c64.inc
|
c64.inc
|
||||||
|
|||||||
28
src/ld65/cfg/atmos.cfg
Normal file
28
src/ld65/cfg/atmos.cfg
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
MEMORY {
|
||||||
|
ZP: start = $02, size = $1A, type = rw, define = yes;
|
||||||
|
RAM: start = $0600, size = $9200, define = yes, file = %O;
|
||||||
|
}
|
||||||
|
SEGMENTS {
|
||||||
|
CODE: load = RAM, type = wprot;
|
||||||
|
RODATA: load = RAM, type = wprot;
|
||||||
|
DATA: load = RAM, type = rw;
|
||||||
|
BSS: load = RAM, type = bss, define = yes;
|
||||||
|
ZEROPAGE: load = ZP, type = zp;
|
||||||
|
}
|
||||||
|
FEATURES {
|
||||||
|
CONDES: segment = RODATA,
|
||||||
|
type = constructor,
|
||||||
|
label = __CONSTRUCTOR_TABLE__,
|
||||||
|
count = __CONSTRUCTOR_COUNT__;
|
||||||
|
CONDES: segment = RODATA,
|
||||||
|
type = destructor,
|
||||||
|
label = __DESTRUCTOR_TABLE__,
|
||||||
|
count = __DESTRUCTOR_COUNT__;
|
||||||
|
}
|
||||||
|
SYMBOLS {
|
||||||
|
__STACKSIZE__ = $800; # 2K stack
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -48,6 +48,7 @@ OBJS = bin.o \
|
|||||||
|
|
||||||
INCS = apple2.inc \
|
INCS = apple2.inc \
|
||||||
atari.inc \
|
atari.inc \
|
||||||
|
atmos.inc \
|
||||||
bbc.inc \
|
bbc.inc \
|
||||||
c64.inc \
|
c64.inc \
|
||||||
c128.inc \
|
c128.inc \
|
||||||
@@ -109,6 +110,9 @@ apple2.inc: cfg/apple2.cfg
|
|||||||
atari.inc: cfg/atari.cfg
|
atari.inc: cfg/atari.cfg
|
||||||
@$(CVT) $< $@ CfgAtari
|
@$(CVT) $< $@ CfgAtari
|
||||||
|
|
||||||
|
atmos.inc: cfg/atmos.cfg
|
||||||
|
@$(CVT) $< $@ CfgAtmos
|
||||||
|
|
||||||
bbc.inc: cfg/bbc.cfg
|
bbc.inc: cfg/bbc.cfg
|
||||||
@$(CVT) $< $@ CfgBBC
|
@$(CVT) $< $@ CfgBBC
|
||||||
|
|
||||||
|
|||||||
@@ -50,6 +50,7 @@ static const char CfgEmpty[] = "";
|
|||||||
/* Actual target configurations, converted into C strings by a perl script */
|
/* Actual target configurations, converted into C strings by a perl script */
|
||||||
#include "apple2.inc"
|
#include "apple2.inc"
|
||||||
#include "atari.inc"
|
#include "atari.inc"
|
||||||
|
#include "atmos.inc"
|
||||||
#include "bbc.inc"
|
#include "bbc.inc"
|
||||||
#include "c128.inc"
|
#include "c128.inc"
|
||||||
#include "c64.inc"
|
#include "c64.inc"
|
||||||
@@ -75,6 +76,7 @@ const TargetDesc Targets [TGT_COUNT] = {
|
|||||||
{ BINFMT_BINARY, CfgNone },
|
{ BINFMT_BINARY, CfgNone },
|
||||||
{ BINFMT_O65, CfgModule },
|
{ BINFMT_O65, CfgModule },
|
||||||
{ BINFMT_BINARY, CfgAtari },
|
{ BINFMT_BINARY, CfgAtari },
|
||||||
|
{ BINFMT_BINARY, CfgAtmos },
|
||||||
{ BINFMT_BINARY, CfgC64 },
|
{ BINFMT_BINARY, CfgC64 },
|
||||||
{ BINFMT_BINARY, CfgC128 },
|
{ BINFMT_BINARY, CfgC128 },
|
||||||
{ BINFMT_BINARY, CfgEmpty }, /* Ace */
|
{ BINFMT_BINARY, CfgEmpty }, /* Ace */
|
||||||
|
|||||||
Reference in New Issue
Block a user