2013-05-20 18:35:42 +00:00
|
|
|
SYMBOLS {
|
|
|
|
__EXEHDR__: type = import;
|
|
|
|
__STACKSIZE__: type = weak, value = $0800; # 2k stack
|
|
|
|
}
|
|
|
|
MEMORY {
|
2017-03-21 21:35:25 +00:00
|
|
|
ZP: file = "", start = $0000, size = $001B;
|
2016-03-06 20:26:22 +00:00
|
|
|
HEADER: file = %O, start = $0000, size = $0001;
|
2016-03-07 00:28:55 +00:00
|
|
|
MAIN: file = %O, define = yes, start = $0200, size = $FDF0 - __STACKSIZE__;
|
2013-05-20 18:35:42 +00:00
|
|
|
}
|
|
|
|
SEGMENTS {
|
2016-03-06 20:26:22 +00:00
|
|
|
ZEROPAGE: load = ZP, type = zp;
|
|
|
|
EXEHDR: load = HEADER, type = ro;
|
2016-03-07 00:28:55 +00:00
|
|
|
STARTUP: load = MAIN, type = ro;
|
2016-03-17 20:31:43 +00:00
|
|
|
LOWCODE: load = MAIN, type = ro, optional = yes;
|
|
|
|
ONCE: load = MAIN, type = ro, optional = yes;
|
2016-03-07 00:28:55 +00:00
|
|
|
CODE: load = MAIN, type = ro;
|
|
|
|
RODATA: load = MAIN, type = ro;
|
|
|
|
DATA: load = MAIN, type = rw;
|
2016-03-17 20:31:43 +00:00
|
|
|
BSS: load = MAIN, type = bss, define = yes;
|
2013-05-20 18:35:42 +00:00
|
|
|
}
|
|
|
|
FEATURES {
|
|
|
|
CONDES: type = constructor,
|
|
|
|
label = __CONSTRUCTOR_TABLE__,
|
|
|
|
count = __CONSTRUCTOR_COUNT__,
|
2016-03-06 20:26:22 +00:00
|
|
|
segment = ONCE;
|
2013-05-20 18:35:42 +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__;
|
|
|
|
}
|