2009-09-20 13:14:29 +00:00
|
|
|
# Default configuration built into ld65 (allowing for 3KB of HIGHCODE)
|
|
|
|
|
2005-09-14 08:55:28 +00:00
|
|
|
FEATURES {
|
2008-03-16 09:37:22 +00:00
|
|
|
STARTADDRESS: default = $0803;
|
2005-09-14 08:55:28 +00:00
|
|
|
}
|
2000-10-31 18:08:25 +00:00
|
|
|
MEMORY {
|
2008-03-16 09:37:22 +00:00
|
|
|
ZP: start = $0080, size = $001A, define = yes;
|
2005-09-14 08:55:28 +00:00
|
|
|
HEADER: start = $0000, size = $0004, file = %O;
|
2008-03-16 09:37:22 +00:00
|
|
|
RAM: start = %S, size = $9600 - %S, file = %O, define = yes;
|
|
|
|
MOVE: start = $0000, size = $FFFF, file = %O, define = yes;
|
|
|
|
LC: start = $D400, size = $0C00, define = yes;
|
2000-10-31 18:08:25 +00:00
|
|
|
}
|
|
|
|
SEGMENTS {
|
2008-03-16 09:37:22 +00:00
|
|
|
ZEROPAGE: load = ZP, type = zp;
|
|
|
|
EXEHDR: load = HEADER, type = ro;
|
|
|
|
STARTUP: load = RAM, type = ro;
|
|
|
|
LOWCODE: load = RAM, type = ro;
|
|
|
|
CODE: load = RAM, type = ro;
|
|
|
|
RODATA: load = RAM, type = ro;
|
|
|
|
DATA: load = RAM, type = rw;
|
2008-07-15 18:34:20 +00:00
|
|
|
ZPSAVE: load = RAM, type = bss, define = yes;
|
2008-03-16 09:37:22 +00:00
|
|
|
BSS: load = RAM, type = bss, define = yes;
|
|
|
|
INIT: load = MOVE, run = RAM, type = ro, define = yes;
|
|
|
|
HIGHCODE: load = MOVE, run = LC, type = ro, optional = yes;
|
2000-10-31 18:08:25 +00:00
|
|
|
}
|
2000-11-20 23:04:30 +00:00
|
|
|
FEATURES {
|
2005-02-26 09:06:12 +00:00
|
|
|
CONDES: segment = INIT,
|
2008-03-16 09:37:22 +00:00
|
|
|
type = constructor,
|
|
|
|
label = __CONSTRUCTOR_TABLE__,
|
|
|
|
count = __CONSTRUCTOR_COUNT__;
|
2000-11-20 23:04:30 +00:00
|
|
|
CONDES: segment = RODATA,
|
2008-03-16 09:37:22 +00:00
|
|
|
type = destructor,
|
|
|
|
label = __DESTRUCTOR_TABLE__,
|
|
|
|
count = __DESTRUCTOR_COUNT__;
|
2005-09-14 08:55:28 +00:00
|
|
|
CONDES: type = interruptor,
|
2008-03-16 09:37:22 +00:00
|
|
|
segment = RODATA,
|
|
|
|
label = __INTERRUPTOR_TABLE__,
|
|
|
|
count = __INTERRUPTOR_COUNT__;
|
2000-11-20 23:04:30 +00:00
|
|
|
}
|
2001-03-10 14:24:58 +00:00
|
|
|
SYMBOLS {
|
2009-10-01 17:00:10 +00:00
|
|
|
__STACKSIZE__: value = $0800, weak = yes; # 2k stack
|
2001-03-10 14:24:58 +00:00
|
|
|
}
|