]> git.sur5r.net Git - cc65/blob - src/ld65/cfg/lynx-coll.cfg
e4c40e002c1b077764691129963708423a6eb531
[cc65] / src / ld65 / cfg / lynx-coll.cfg
1 SYMBOLS {
2     __STACKSIZE__: type = weak, value = $0800; # 2k stack
3     __STARTOFDIRECTORY__: type = weak, value = $00CB; # start just after loader
4     __BLOCKSIZE__: type = weak, value = 1024; # cart block size
5     __EXEHDR__:    type = import;
6     __BOOTLDR__:   type = import;
7     __DEFDIR__:    type = import;
8 }
9 MEMORY {
10     ZP:     file = "", define = yes, start = $0000, size = $0100;
11     HEADER: file = %O,               start = $0000, size = $0040;
12     BOOT:   file = %O,               start = $0200, size = __STARTOFDIRECTORY__;
13     DIR:    file = %O,               start = $0000, size = 8;
14     RAM:    file = %O, define = yes, start = $0200, size = $9E58 - __STACKSIZE__;
15 }
16 SEGMENTS {
17     EXEHDR:   load = HEADER, type = ro;
18     BOOTLDR:  load = BOOT,   type = ro;
19     DIRECTORY:load = DIR,    type = ro;
20     STARTUP:  load = RAM,    type = ro,  define = yes;
21     LOWCODE:  load = RAM,    type = ro,                optional = yes;
22     INIT:     load = RAM,    type = ro,  define = yes, optional = yes;
23     CODE:     load = RAM,    type = ro,  define = yes;
24     RODATA:   load = RAM,    type = ro,  define = yes;
25     DATA:     load = RAM,    type = rw,  define = yes;
26     BSS:      load = RAM,    type = bss, define = yes;
27     ZEROPAGE: load = ZP,     type = zp;
28     EXTZP:    load = ZP,     type = zp,                optional = yes;
29     APPZP:    load = ZP,     type = zp,                optional = yes;
30 }
31 FEATURES {
32     CONDES: segment = INIT,
33             type    = constructor,
34             label   = __CONSTRUCTOR_TABLE__,
35             count   = __CONSTRUCTOR_COUNT__;
36     CONDES: segment = RODATA,
37             type    = destructor,
38             label   = __DESTRUCTOR_TABLE__,
39             count   = __DESTRUCTOR_COUNT__;
40     CONDES: segment = RODATA,
41             type    = interruptor,
42             label   = __INTERRUPTOR_TABLE__,
43             count   = __INTERRUPTOR_COUNT__,
44             import  = __CALLIRQ__;
45 }