]> git.sur5r.net Git - cc65/blob - cfg/osic1p.cfg
Use constants for screen width and height.
[cc65] / cfg / osic1p.cfg
1 FEATURES {
2     STARTADDRESS: default = $0200;
3 }
4 SYMBOLS {
5     __STACKSIZE__: type = weak, value = $0400; # 1 kB stack
6     __HIMEM__:     type = weak, value = $8000; # 32 kB RAM
7 }
8 MEMORY {
9     # for size of ZP see runtime/zeropage.s and c1p/extzp.s
10     ZP:       file = "", define = yes, start = $0002, size = $001A + $0005;
11     RAM:      file = %O, define = yes, start = %S, size = __HIMEM__ - __STACKSIZE__ - %S;
12 }
13 SEGMENTS {
14     STARTUP:  load = RAM, type = ro;
15     LOWCODE:  load = RAM, type = ro,                optional = yes;
16     INIT:     load = RAM, type = ro,  define = yes, optional = yes;
17     CODE:     load = RAM, type = rw;
18     RODATA:   load = RAM, type = rw;
19     DATA:     load = RAM, type = rw;
20     BSS:      load = RAM, type = bss, define = yes;
21     ZEROPAGE: load = ZP,  type = zp;
22     EXTZP:    load = ZP,  type = rw,  define = yes;
23 }
24 FEATURES {
25     CONDES: type    = constructor,
26             label   = __CONSTRUCTOR_TABLE__,
27             count   = __CONSTRUCTOR_COUNT__,
28             segment = INIT;
29     CONDES: type    = destructor,
30             label   = __DESTRUCTOR_TABLE__,
31             count   = __DESTRUCTOR_COUNT__,
32             segment = RODATA;
33 }