1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-26 20:29:34 +00:00

Added the CBM510 as a new target system

git-svn-id: svn://svn.cc65.org/cc65/trunk@910 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz 2001-09-13 19:49:27 +00:00
parent 3ab5a002df
commit 6be0510138
6 changed files with 38 additions and 5 deletions

View File

@ -1,3 +1,3 @@
.depend
ar65
.kdbgrc.ar65

View File

@ -1,2 +1,3 @@
.depend
ca65
.kdbgrc.ca65

View File

@ -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

24
src/ld65/cfg/cbm510.cfg Normal file
View File

@ -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
}

View File

@ -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

View File

@ -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 },