]> git.sur5r.net Git - cc65/blob - src/ld65/cfg/cbm610.cfg
Just some beautification.
[cc65] / src / ld65 / cfg / cbm610.cfg
1 SYMBOLS {
2     __STACKSIZE__: type = weak, value = $0800; # 2k stack
3 }
4 MEMORY {
5     HEADER:  file = %O,               start = $0001, size = $0050, fill = yes;
6     ZP:      file = %O, define = yes, start = $0051, size = $00AD, fill = yes;
7     STARTUP: file = %O,               start = $00FE, size = $0102, fill = yes;
8     PAGE2:   file = %O,               start = $0200, size = $0100, fill = yes;
9     PAGE3:   file = %O,               start = $0300, size = $0100, fill = yes;
10     RAM:     file = %O,               start = $0400, size = $FECB - __STACKSIZE__;
11 }
12 SEGMENTS {
13     EXEHDR:   load = HEADER,  type = rw;
14     STARTUP:  load = STARTUP, type = rw;
15     PAGE2:    load = PAGE2,   type = rw;
16     PAGE3:    load = PAGE3,   type = rw;
17     LOWCODE:  load = RAM,     type = ro,                optional = yes;
18     INIT:     load = RAM,     type = ro,  define = yes, optional = yes;
19     CODE:     load = RAM,     type = ro;
20     RODATA:   load = RAM,     type = ro;
21     DATA:     load = RAM,     type = rw;
22     BSS:      load = RAM,     type = bss, define = yes;
23     ZEROPAGE: load = ZP,      type = zp;
24     EXTZP:    load = ZP,      type = rw,  define = yes;
25 }
26 FEATURES {
27     CONDES: type    = constructor,
28             label   = __CONSTRUCTOR_TABLE__,
29             count   = __CONSTRUCTOR_COUNT__,
30             segment = INIT;
31     CONDES: type    = destructor,
32             label   = __DESTRUCTOR_TABLE__,
33             count   = __DESTRUCTOR_COUNT__,
34             segment = RODATA;
35     CONDES: type    = interruptor,
36             label   = __INTERRUPTOR_TABLE__,
37             count   = __INTERRUPTOR_COUNT__,
38             segment = RODATA,
39             import  = __CALLIRQ__;
40 }