2014-01-02 18:28:22 +00:00
|
|
|
FEATURES {
|
2014-02-21 22:34:05 +00:00
|
|
|
STARTADDRESS: default = $0900;
|
2014-01-02 18:28:22 +00:00
|
|
|
}
|
|
|
|
SYMBOLS {
|
2014-02-21 21:43:44 +00:00
|
|
|
__STACKSIZE__: type = weak, value = $0800; # 2k stack
|
|
|
|
__RESERVED_MEMORY__: type = weak, value = $0000;
|
2014-01-02 18:28:22 +00:00
|
|
|
__STARTADDRESS__: type = export, value = %S;
|
2014-02-21 21:43:44 +00:00
|
|
|
_cas_hdr: type = import;
|
2014-01-02 18:28:22 +00:00
|
|
|
}
|
|
|
|
MEMORY {
|
2016-03-07 00:28:55 +00:00
|
|
|
ZP: file = "", define = yes, start = $0082, size = $007E;
|
|
|
|
MAIN: file = %O, define = yes, start = %S, size = $BC20 - __STACKSIZE__ - __RESERVED_MEMORY__ - %S;
|
2014-01-02 18:28:22 +00:00
|
|
|
}
|
|
|
|
SEGMENTS {
|
2016-03-07 00:28:55 +00:00
|
|
|
ZEROPAGE: load = ZP, type = zp, optional = yes;
|
|
|
|
EXTZP: load = ZP, type = zp, optional = yes;
|
|
|
|
CASHDR: load = MAIN, type = ro;
|
|
|
|
STARTUP: load = MAIN, type = ro, define = yes, optional = yes;
|
|
|
|
LOWCODE: load = MAIN, type = ro, define = yes, optional = yes;
|
|
|
|
ONCE: load = MAIN, type = ro, optional = yes;
|
|
|
|
CODE: load = MAIN, type = ro, define = yes;
|
|
|
|
RODATA: load = MAIN, type = ro, optional = yes;
|
|
|
|
DATA: load = MAIN, type = rw, optional = yes;
|
2016-05-24 23:29:00 +00:00
|
|
|
BSS: load = MAIN, type = bss, define = yes, optional = yes;
|
2016-03-07 00:28:55 +00:00
|
|
|
INIT: load = MAIN, type = bss, optional = yes;
|
2014-01-02 18:28:22 +00:00
|
|
|
}
|
|
|
|
FEATURES {
|
|
|
|
CONDES: type = constructor,
|
|
|
|
label = __CONSTRUCTOR_TABLE__,
|
|
|
|
count = __CONSTRUCTOR_COUNT__,
|
2016-03-06 20:26:22 +00:00
|
|
|
segment = ONCE;
|
2014-01-02 18:28:22 +00:00
|
|
|
CONDES: type = destructor,
|
|
|
|
label = __DESTRUCTOR_TABLE__,
|
|
|
|
count = __DESTRUCTOR_COUNT__,
|
|
|
|
segment = RODATA;
|
|
|
|
CONDES: type = interruptor,
|
|
|
|
label = __INTERRUPTOR_TABLE__,
|
|
|
|
count = __INTERRUPTOR_COUNT__,
|
|
|
|
segment = RODATA,
|
|
|
|
import = __CALLIRQ__;
|
|
|
|
}
|