New target c16
git-svn-id: svn://svn.cc65.org/cc65/trunk@1563 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -8,6 +8,7 @@ atari.inc
|
||||
atmos.inc
|
||||
bbc.inc
|
||||
c128.inc
|
||||
c16.inc
|
||||
c64.inc
|
||||
cbm510.inc
|
||||
cbm610.inc
|
||||
|
||||
24
src/ld65/cfg/c16.cfg
Normal file
24
src/ld65/cfg/c16.cfg
Normal file
@@ -0,0 +1,24 @@
|
||||
MEMORY {
|
||||
ZP: start = $02, size = $1A, type = rw, define = yes;
|
||||
RAM: start = $0fff, size = $7001, 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
|
||||
}
|
||||
@@ -50,6 +50,7 @@ INCS = apple2.inc \
|
||||
atari.inc \
|
||||
atmos.inc \
|
||||
bbc.inc \
|
||||
c16.inc \
|
||||
c64.inc \
|
||||
c128.inc \
|
||||
cbm510.inc \
|
||||
@@ -117,6 +118,9 @@ atmos.inc: cfg/atmos.cfg
|
||||
bbc.inc: cfg/bbc.cfg
|
||||
@$(CVT) $< $@ CfgBBC
|
||||
|
||||
c16.inc: cfg/c16.cfg
|
||||
@$(CVT) $< $@ CfgC16
|
||||
|
||||
c64.inc: cfg/c64.cfg
|
||||
@$(CVT) $< $@ CfgC64
|
||||
|
||||
|
||||
@@ -53,6 +53,7 @@ static const char CfgEmpty[] = "";
|
||||
#include "atmos.inc"
|
||||
#include "bbc.inc"
|
||||
#include "c128.inc"
|
||||
#include "c16.inc"
|
||||
#include "c64.inc"
|
||||
#include "cbm510.inc"
|
||||
#include "cbm610.inc"
|
||||
@@ -78,6 +79,7 @@ const TargetDesc Targets [TGT_COUNT] = {
|
||||
{ BINFMT_O65, CfgModule },
|
||||
{ BINFMT_BINARY, CfgAtari },
|
||||
{ BINFMT_BINARY, CfgVic20 },
|
||||
{ BINFMT_BINARY, CfgC16 },
|
||||
{ BINFMT_BINARY, CfgC64 },
|
||||
{ BINFMT_BINARY, CfgC128 },
|
||||
{ BINFMT_BINARY, CfgEmpty }, /* Ace */
|
||||
@@ -94,3 +96,4 @@ const TargetDesc Targets [TGT_COUNT] = {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user