]> git.sur5r.net Git - cc65/blob - cfg/cbm510.cfg
Replaced three function calls with one.
[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     BSS:      load = RAM,     type = bss, define = yes;
26     ZEROPAGE: load = ZP,      type = zp;
27     EXTZP:    load = ZP,      type = rw,  define = yes;
28 }
29 FEATURES {
30     CONDES: type    = constructor,
31             label   = __CONSTRUCTOR_TABLE__,
32             count   = __CONSTRUCTOR_COUNT__,
33             segment = INIT;
34     CONDES: type    = destructor,
35             label   = __DESTRUCTOR_TABLE__,
36             count   = __DESTRUCTOR_COUNT__,
37             segment = RODATA;
38     CONDES: type    = interruptor,
39             label   = __INTERRUPTOR_TABLE__,
40             count   = __INTERRUPTOR_COUNT__,
41             segment = RODATA,
42             import  = __CALLIRQ__;
43 }