From: cuz Date: Thu, 13 Sep 2001 19:49:27 +0000 (+0000) Subject: Added the CBM510 as a new target system X-Git-Tag: V2.12.0~2671 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6be05101387ae989eb369fe9125a31c264fc5472;p=cc65 Added the CBM510 as a new target system git-svn-id: svn://svn.cc65.org/cc65/trunk@910 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/ar65/.cvsignore b/src/ar65/.cvsignore index 765a70274..19ac62039 100644 --- a/src/ar65/.cvsignore +++ b/src/ar65/.cvsignore @@ -1,3 +1,3 @@ .depend ar65 - +.kdbgrc.ar65 diff --git a/src/ca65/.cvsignore b/src/ca65/.cvsignore index d745ea83a..6c020cad8 100644 --- a/src/ca65/.cvsignore +++ b/src/ca65/.cvsignore @@ -1,2 +1,3 @@ .depend ca65 +.kdbgrc.ca65 diff --git a/src/ld65/.cvsignore b/src/ld65/.cvsignore index 1d5a66f12..fc7dfc8de 100644 --- a/src/ld65/.cvsignore +++ b/src/ld65/.cvsignore @@ -1,5 +1,6 @@ .depend -ld65 +ld65 +.kdbgrc.ld65 *.map *.s apple2.inc @@ -7,6 +8,7 @@ atari.inc bbc.inc c128.inc c64.inc +cbm510.inc cbm610.inc geos.inc none.inc diff --git a/src/ld65/cfg/cbm510.cfg b/src/ld65/cfg/cbm510.cfg new file mode 100644 index 000000000..586412d53 --- /dev/null +++ b/src/ld65/cfg/cbm510.cfg @@ -0,0 +1,24 @@ +MEMORY { + ZP: start = $02, size = $1A, type = rw; + RAM: start = $0001, size = $FFF0, 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 +} diff --git a/src/ld65/make/gcc.mak b/src/ld65/make/gcc.mak index cc9b8ab3d..0cdcca1f3 100644 --- a/src/ld65/make/gcc.mak +++ b/src/ld65/make/gcc.mak @@ -42,7 +42,7 @@ OBJS = bin.o \ scanner.o \ segments.o \ tgtcfg.o - + # ----------------------------------------------------------------------------- # List of all config includes @@ -51,6 +51,7 @@ INCS = apple2.inc \ bbc.inc \ c64.inc \ c128.inc \ + cbm510.inc \ cbm610.inc \ geos.inc \ none.inc \ @@ -115,6 +116,9 @@ c64.inc: cfg/c64.cfg c128.inc: cfg/c128.cfg @$(CVT) $< $@ CfgC128 +cbm510.inc: cfg/cbm510.cfg + @$(CVT) $< $@ CfgCBM510 + cbm610.inc: cfg/cbm610.cfg @$(CVT) $< $@ CfgCBM610 diff --git a/src/ld65/tgtcfg.c b/src/ld65/tgtcfg.c index 46d5ee172..e2b0d22e2 100644 --- a/src/ld65/tgtcfg.c +++ b/src/ld65/tgtcfg.c @@ -53,16 +53,17 @@ static const char CfgEmpty[] = ""; #include "bbc.inc" #include "c128.inc" #include "c64.inc" +#include "cbm510.inc" #include "cbm610.inc" #include "geos.inc" #include "none.inc" #include "pet.inc" #include "plus4.inc" - + /*****************************************************************************/ -/* Data */ +/* Data */ /*****************************************************************************/ @@ -75,6 +76,7 @@ const TargetDesc Targets [TGT_COUNT] = { { BINFMT_BINARY, CfgC128 }, { BINFMT_BINARY, CfgEmpty }, /* Ace */ { BINFMT_BINARY, CfgPlus4 }, + { BINFMT_BINARY, CfgCBM510 }, { BINFMT_BINARY, CfgCBM610 }, { BINFMT_BINARY, CfgPET }, { BINFMT_BINARY, CfgBBC },