2010-03-21 17:10:17 +00:00
|
|
|
SYMBOLS {
|
2014-11-09 11:32:11 +00:00
|
|
|
__TAPEHDR__: type = import;
|
|
|
|
__BASHDR__: type = import;
|
|
|
|
__PROGFLAG__: type = weak, value = $00; # $00=BASIC, $80=machine code
|
2014-12-13 14:52:39 +00:00
|
|
|
__AUTORUN__: type = weak, value = $00; # $00=only load, $C7=run
|
2014-11-09 11:32:11 +00:00
|
|
|
__STACKSIZE__: type = weak, value = $0800; # 2K stack
|
2014-12-13 14:52:39 +00:00
|
|
|
__GRAB__: type = weak, value = 0; # 0=don't grab graphics RAM, 1=grab graphics RAM
|
|
|
|
__RAMEND__: type = weak, value = $9800 + $1C00 * __GRAB__;
|
2010-03-21 17:10:17 +00:00
|
|
|
}
|
2002-06-03 20:14:11 +00:00
|
|
|
MEMORY {
|
2016-03-16 15:28:32 +00:00
|
|
|
ZP: file = "", define = yes, start = $00E2, size = $001A;
|
|
|
|
TAPEHDR: file = %O, type = ro, start = $0000, size = $001F;
|
|
|
|
BASHEAD: file = %O, define = yes, start = $0501, size = $000D;
|
2016-03-18 15:28:56 +00:00
|
|
|
MAIN: file = %O, define = yes, start = __BASHEAD_LAST__, size = __RAMEND__ - __MAIN_START__;
|
|
|
|
BSS: file = "", start = __ONCE_RUN__, size = __RAMEND__ - __STACKSIZE__ - __ONCE_RUN__;
|
2002-06-03 20:14:11 +00:00
|
|
|
}
|
|
|
|
SEGMENTS {
|
2014-11-09 11:32:11 +00:00
|
|
|
ZEROPAGE: load = ZP, type = zp;
|
2005-02-25 07:52:50 +00:00
|
|
|
TAPEHDR: load = TAPEHDR, type = ro;
|
2016-03-18 15:28:56 +00:00
|
|
|
BASHDR: load = BASHEAD, type = ro, optional = yes;
|
2016-03-07 00:28:55 +00:00
|
|
|
STARTUP: load = MAIN, type = ro;
|
2016-03-18 15:28:56 +00:00
|
|
|
LOWCODE: 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;
|
2023-09-05 04:24:18 +00:00
|
|
|
INIT: load = MAIN, type = rw; # uninitialized, but reserves output space
|
2016-03-18 15:28:56 +00:00
|
|
|
ONCE: load = MAIN, type = ro, define = yes;
|
|
|
|
BASTAIL: load = MAIN, type = ro, optional = yes;
|
|
|
|
BSS: load = BSS, type = bss, define = yes;
|
2002-06-03 20:14:11 +00:00
|
|
|
}
|
|
|
|
FEATURES {
|
2013-02-12 20:55:19 +00:00
|
|
|
CONDES: type = constructor,
|
|
|
|
label = __CONSTRUCTOR_TABLE__,
|
|
|
|
count = __CONSTRUCTOR_COUNT__,
|
2016-03-06 20:26:22 +00:00
|
|
|
segment = ONCE;
|
2013-02-12 20:55:19 +00:00
|
|
|
CONDES: type = destructor,
|
|
|
|
label = __DESTRUCTOR_TABLE__,
|
|
|
|
count = __DESTRUCTOR_COUNT__,
|
|
|
|
segment = RODATA;
|
|
|
|
CONDES: type = interruptor,
|
|
|
|
label = __INTERRUPTOR_TABLE__,
|
|
|
|
count = __INTERRUPTOR_COUNT__,
|
|
|
|
segment = RODATA,
|
2012-11-03 21:59:15 +00:00
|
|
|
import = __CALLIRQ__;
|
2002-06-03 20:14:11 +00:00
|
|
|
}
|