2018-01-29 16:46:36 +00:00
|
|
|
# Configuration for programs including a hires screen (with 6KB LOWCODE)
|
|
|
|
|
|
|
|
FEATURES {
|
|
|
|
STARTADDRESS: default = $0803;
|
|
|
|
}
|
|
|
|
SYMBOLS {
|
2018-01-31 07:54:48 +00:00
|
|
|
__EXEHDR__: type = import;
|
2018-03-07 22:04:33 +00:00
|
|
|
__FILETYPE__: type = weak, value = $0006; # ProDOS file type
|
2018-01-31 07:54:48 +00:00
|
|
|
__STACKSIZE__: type = weak, value = $0800; # 2k stack
|
|
|
|
__HIMEM__: type = weak, value = $9600; # Presumed RAM end
|
|
|
|
__LCADDR__: type = weak, value = $D400; # Behind quit code
|
|
|
|
__LCSIZE__: type = weak, value = $0C00; # Rest of bank two
|
2018-01-29 16:46:36 +00:00
|
|
|
}
|
|
|
|
MEMORY {
|
|
|
|
ZP: file = "", define = yes, start = $0080, size = $001A;
|
2018-03-07 22:04:33 +00:00
|
|
|
HEADER: file = %O, start = %S - $003A, size = $003A;
|
2018-01-31 07:54:48 +00:00
|
|
|
MAIN: file = %O, define = yes, start = %S, size = __HIMEM__ - %S;
|
2018-01-29 16:46:36 +00:00
|
|
|
BSS: file = "", start = __ONCE_RUN__, size = __HIMEM__ - __STACKSIZE__ - __ONCE_RUN__;
|
|
|
|
LC: file = "", define = yes, start = __LCADDR__, size = __LCSIZE__;
|
|
|
|
}
|
|
|
|
SEGMENTS {
|
|
|
|
ZEROPAGE: load = ZP, type = zp;
|
2018-02-02 13:46:57 +00:00
|
|
|
EXEHDR: load = HEADER, type = ro, optional = yes;
|
2018-01-31 07:54:48 +00:00
|
|
|
STARTUP: load = MAIN, type = ro;
|
|
|
|
LOWCODE: load = MAIN, type = ro, optional = yes;
|
2020-10-24 11:55:10 +00:00
|
|
|
HGR: load = MAIN, type = rw, start = $2000;
|
|
|
|
CODE: load = MAIN, type = ro start = $4000;
|
2018-01-31 07:54:48 +00:00
|
|
|
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
|
2018-01-31 07:54:48 +00:00
|
|
|
ONCE: load = MAIN, type = ro, define = yes;
|
|
|
|
LC: load = MAIN, run = LC, type = ro, optional = yes;
|
2018-01-29 16:46:36 +00:00
|
|
|
BSS: load = BSS, type = bss, define = yes;
|
|
|
|
}
|
|
|
|
FEATURES {
|
|
|
|
CONDES: type = constructor,
|
|
|
|
label = __CONSTRUCTOR_TABLE__,
|
|
|
|
count = __CONSTRUCTOR_COUNT__,
|
|
|
|
segment = ONCE;
|
|
|
|
CONDES: type = destructor,
|
|
|
|
label = __DESTRUCTOR_TABLE__,
|
|
|
|
count = __DESTRUCTOR_COUNT__,
|
|
|
|
segment = RODATA;
|
|
|
|
CONDES: type = interruptor,
|
|
|
|
label = __INTERRUPTOR_TABLE__,
|
|
|
|
count = __INTERRUPTOR_COUNT__,
|
|
|
|
segment = RODATA,
|
|
|
|
import = __CALLIRQ__;
|
|
|
|
}
|