]> git.sur5r.net Git - cc65/blob - src/ld65/cfg/lynx-bll.cfg
Added classification macros for file types from struct dirent.
[cc65] / src / ld65 / cfg / lynx-bll.cfg
1 SYMBOLS {
2     __STACKSIZE__: type = weak, value = $0800; # 2k stack
3     __STARTOFDIRECTORY__: type = weak, value = $00DF; # start just after loader
4     __BLOCKSIZE__: type = weak, value = 1024; # cart block size
5     __BLLHDR__:    type = import;
6 }
7 MEMORY {
8     ZP:     file = "", define = yes, start = $0000, size = $0100;
9     HEADER: file = %O,               start = $0000, size = $000a;
10     RAM:    file = %O, define = yes, start = $0400, size = $BC38 - __STACKSIZE__;
11 }
12 SEGMENTS {
13     BLLHDR:   load = HEADER, type = ro;
14     STARTUP:  load = RAM,    type = ro,  define = yes;
15     LOWCODE:  load = RAM,    type = ro,                optional = yes;
16     INIT:     load = RAM,    type = ro,  define = yes, optional = yes;
17     CODE:     load = RAM,    type = ro,  define = yes;
18     RODATA:   load = RAM,    type = ro,  define = yes;
19     DATA:     load = RAM,    type = rw,  define = yes;
20     BSS:      load = RAM,    type = bss, define = yes;
21     ZEROPAGE: load = ZP,     type = zp;
22     EXTZP:    load = ZP,     type = zp,                optional = yes;
23     APPZP:    load = ZP,     type = zp,                optional = yes;
24 }
25 FEATURES {
26     CONDES: segment = INIT,
27             type    = constructor,
28             label   = __CONSTRUCTOR_TABLE__,
29             count   = __CONSTRUCTOR_COUNT__;
30     CONDES: segment = RODATA,
31             type    = destructor,
32             label   = __DESTRUCTOR_TABLE__,
33             count   = __DESTRUCTOR_COUNT__;
34     CONDES: segment = RODATA,
35             type    = interruptor,
36             label   = __INTERRUPTOR_TABLE__,
37             count   = __INTERRUPTOR_COUNT__;
38 }