mirror of
https://github.com/cc65/cc65.git
synced 2024-12-23 04:30:10 +00:00
New target: supervision
git-svn-id: svn://svn.cc65.org/cc65/trunk@2495 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
d88ee416f0
commit
2541ddd2f6
@ -70,6 +70,7 @@ const char* TargetNames [TGT_COUNT] = {
|
||||
"lunix",
|
||||
"atmos",
|
||||
"nes",
|
||||
"supervision",
|
||||
};
|
||||
|
||||
|
||||
@ -94,6 +95,7 @@ const cpu_t DefaultCPU[TGT_COUNT] = {
|
||||
CPU_6502, /* lunix */
|
||||
CPU_6502, /* atmos */
|
||||
CPU_6502, /* nes */
|
||||
CPU_65C02, /* supervision */
|
||||
};
|
||||
|
||||
|
||||
|
@ -70,6 +70,7 @@ typedef enum {
|
||||
TGT_LUNIX,
|
||||
TGT_ATMOS,
|
||||
TGT_NES,
|
||||
TGT_SUPERVISION,
|
||||
TGT_COUNT /* Number of target systems */
|
||||
} target_t;
|
||||
|
||||
|
32
src/ld65/cfg/supervision.cfg
Normal file
32
src/ld65/cfg/supervision.cfg
Normal file
@ -0,0 +1,32 @@
|
||||
# if you want to combine the 2 16 kbyte roms
|
||||
# make sure the halves are mirrored in the 64kbyte cartridge image
|
||||
# or reset from code >0xc000 and switch bank to the 3rd bank
|
||||
|
||||
MEMORY {
|
||||
ZP: start = $0000, size = $100;
|
||||
CPUSTACK: start = $0100, size =$100;
|
||||
RAM: start = $0200, size = $1e00, define = yes;
|
||||
VRAM: start = $4000, size = $2000;
|
||||
ROM: start = $8000, size = $8000, fill = yes, fillval = $ff, file = %O, define = yes;
|
||||
}
|
||||
|
||||
SEGMENTS {
|
||||
CODE: load = ROM, type = ro, define=yes;
|
||||
RODATA: load = ROM, type = ro, define=yes;
|
||||
DATA: load = ROM, run=RAM, type = rw, define = yes;
|
||||
FFF0: load = ROM, type = ro, offset = $7FF0;
|
||||
VECTOR: load = ROM, type = ro, offset = $7FFA;
|
||||
BSS: load = RAM, type = bss, define = yes;
|
||||
ZEROPAGE: load = ZP, type = zp, define = yes;
|
||||
}
|
||||
|
||||
FEATURES {
|
||||
CONDES: segment = RODATA,
|
||||
type = constructor,
|
||||
label = __CONSTRUCTOR_TABLE__,
|
||||
count = __CONSTRUCTOR_COUNT__;
|
||||
CONDES: segment = RODATA,
|
||||
type = destructor,
|
||||
label = __DESTRUCTOR_TABLE__,
|
||||
count = __DESTRUCTOR_COUNT__;
|
||||
}
|
@ -66,6 +66,7 @@ INCS = apple2.inc \
|
||||
none.inc \
|
||||
pet.inc \
|
||||
plus4.inc \
|
||||
supervision.inc \
|
||||
vic20.inc
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
@ -159,6 +160,9 @@ pet.inc: cfg/pet.cfg
|
||||
plus4.inc: cfg/plus4.cfg
|
||||
@$(CVT) $< $@ CfgPlus4
|
||||
|
||||
supervision.inc: cfg/supervision.cfg
|
||||
@$(CVT) $< $@ CfgSupervision
|
||||
|
||||
vic20.inc: cfg/vic20.cfg
|
||||
@$(CVT) $< $@ CfgVic20
|
||||
|
||||
|
@ -68,6 +68,7 @@ static const char CfgEmpty[] = "";
|
||||
#include "none.inc"
|
||||
#include "pet.inc"
|
||||
#include "plus4.inc"
|
||||
#include "supervision.inc"
|
||||
#include "vic20.inc"
|
||||
|
||||
|
||||
@ -98,6 +99,7 @@ const TargetDesc Targets [TGT_COUNT] = {
|
||||
{ BINFMT_O65, CfgLunix },
|
||||
{ BINFMT_BINARY, CfgAtmos },
|
||||
{ BINFMT_BINARY, CfgNES },
|
||||
{ BINFMT_BINARY, CfgSupervision },
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user