]> git.sur5r.net Git - cc65/blob - cfg/lynx.cfg
Replaced builtin linker configs with ordinary .cfg files.
[cc65] / cfg / lynx.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 = $BE38 - __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: type    = constructor,
33             label   = __CONSTRUCTOR_TABLE__,
34             count   = __CONSTRUCTOR_COUNT__,
35             segment = INIT;
36     CONDES: type    = destructor,
37             label   = __DESTRUCTOR_TABLE__,
38             count   = __DESTRUCTOR_COUNT__,
39             segment = RODATA;
40     CONDES: type    = interruptor,
41             label   = __INTERRUPTOR_TABLE__,
42             count   = __INTERRUPTOR_COUNT__,
43             segment = RODATA,
44             import  = __CALLIRQ__;
45 }