]> git.sur5r.net Git - cc65/blob - src/ld65/cfg/lynx-uploader.cfg
Just some beautification.
[cc65] / src / ld65 / cfg / lynx-uploader.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 = $0400; # cart block size
5     __EXEHDR__:           type = import;
6     __BOOTLDR__:          type = import;
7     __DEFDIR__:           type = import;
8     __UPLOADER__:         type = import;
9 }
10 MEMORY {
11     ZP:     file = "", define = yes, start = $0000, size = $0100;
12     HEADER: file = %O,               start = $0000, size = $0040;
13     BOOT:   file = %O,               start = $0200, size = __STARTOFDIRECTORY__;
14     DIR:    file = %O,               start = $0000, size = 8;
15     RAM:    file = %O, define = yes, start = $0200, size = $BD38 - __STACKSIZE__;
16     UPLDR:  file = %O, define = yes, start = $BFDC, size = $005C;
17 }
18 SEGMENTS {
19     EXEHDR:   load = HEADER, type = ro;
20     BOOTLDR:  load = BOOT,   type = ro;
21     DIRECTORY:load = DIR,    type = ro;
22     STARTUP:  load = RAM,    type = ro,  define = yes;
23     LOWCODE:  load = RAM,    type = ro,                optional = yes;
24     INIT:     load = RAM,    type = ro,  define = yes, optional = yes;
25     CODE:     load = RAM,    type = ro,  define = yes;
26     RODATA:   load = RAM,    type = ro,  define = yes;
27     DATA:     load = RAM,    type = rw,  define = yes;
28     BSS:      load = RAM,    type = bss, define = yes;
29     UPCODE:   load = UPLDR,  type = ro,  define = yes;
30     UPDATA:   load = UPLDR,  type = rw,  define = yes;
31     ZEROPAGE: load = ZP,     type = zp;
32     EXTZP:    load = ZP,     type = zp,                optional = yes;
33     APPZP:    load = ZP,     type = zp,                optional = yes;
34 }
35 FEATURES {
36     CONDES: type    = constructor,
37             label   = __CONSTRUCTOR_TABLE__,
38             count   = __CONSTRUCTOR_COUNT__,
39             segment = INIT;
40     CONDES: type    = destructor,
41             label   = __DESTRUCTOR_TABLE__,
42             count   = __DESTRUCTOR_COUNT__,
43             segment = RODATA;
44     CONDES: type    = interruptor,
45             label   = __INTERRUPTOR_TABLE__,
46             count   = __INTERRUPTOR_COUNT__,
47             segment = RODATA,
48             import  = __CALLIRQ__;
49 }