]> git.sur5r.net Git - cc65/blob - cfg/cbm510.cfg
some more fiddling
[cc65] / cfg / cbm510.cfg
1 SYMBOLS {
2     # The stack starts from $FEC3 and grows towards the video ram
3     __STACKSIZE__: type = weak, value = $06C3; # ~1.5k stack
4 }
5 MEMORY {
6     HEADER:  file = %O,               start = $0001, size = $0050, fill = yes;
7     ZP:      file = %O, define = yes, start = $0051, size = $00AD, fill = yes;
8     STARTUP: file = %O,               start = $00FE, size = $0102, fill = yes;
9     PAGE2:   file = %O,               start = $0200, size = $0100, fill = yes;
10     PAGE3:   file = %O,               start = $0300, size = $0100, fill = yes;
11     RAM:     file = %O,               start = $0400, size = $DC00;
12     CHARRAM: file = "", define = yes, start = $E000, size = $1000;
13     VIDRAM:  file = "", define = yes, start = $F000, size = $0400;
14 }
15 SEGMENTS {
16     EXEHDR:   load = HEADER,  type = rw;
17     STARTUP:  load = STARTUP, type = rw;
18     PAGE2:    load = PAGE2,   type = rw;
19     PAGE3:    load = PAGE3,   type = rw;
20     LOWCODE:  load = RAM,     type = ro,                optional = yes;
21     INIT:     load = RAM,     type = ro,  define = yes, optional = yes;
22     CODE:     load = RAM,     type = ro;
23     RODATA:   load = RAM,     type = ro;
24     DATA:     load = RAM,     type = rw;
25     INITBSS:  load = RAM,     type = bss;
26     BSS:      load = RAM,     type = bss, define = yes;
27     ZEROPAGE: load = ZP,      type = zp;
28     EXTZP:    load = ZP,      type = rw,  define = yes;
29 }
30 FEATURES {
31     CONDES: type    = constructor,
32             label   = __CONSTRUCTOR_TABLE__,
33             count   = __CONSTRUCTOR_COUNT__,
34             segment = INIT;
35     CONDES: type    = destructor,
36             label   = __DESTRUCTOR_TABLE__,
37             count   = __DESTRUCTOR_COUNT__,
38             segment = RODATA;
39     CONDES: type    = interruptor,
40             label   = __INTERRUPTOR_TABLE__,
41             count   = __INTERRUPTOR_COUNT__,
42             segment = RODATA,
43             import  = __CALLIRQ__;
44 }