]> git.sur5r.net Git - cc65/blob - cfg/osic1p-asm.cfg
ac2e76dc9b54586cbfd79c2870118ed5f80b7cbc
[cc65] / cfg / osic1p-asm.cfg
1 FEATURES {
2     STARTADDRESS: default = $0200;
3 }
4 SYMBOLS {
5 # If you want ld65 to output a loadable-format file by default, then uncomment
6 # the next line. (Then, "-u __BOOT__" wouldn't be needed on the command line.)
7 #    __BOOT__:      type = import;
8     __STACKSIZE__: type = weak, value = $0400; # 1 kB stack
9     __HIMEM__:     type = weak, value = $8000; # 32 kB RAM
10 }
11 MEMORY {
12     # for size of ZP, see runtime/zeropage.s and c1p/extzp.s
13     ZP:       file = "", define = yes, start = $0002, size = $001A + $0006;
14     HEAD:     file = %O,               start = $0000, size = $00B6;
15     RAM:      file = %O, define = yes, start = %S, size = __HIMEM__ - __STACKSIZE__ - %S;
16 }
17 SEGMENTS {
18     ZEROPAGE: load = ZP,   type = zp;
19     BOOT:     load = HEAD, type = ro,                optional = yes;
20     ONCE:     load = RAM,  type = ro,  define = yes, optional = yes;
21     CODE:     load = RAM,  type = rw;
22     RODATA:   load = RAM,  type = rw;
23     DATA:     load = RAM,  type = rw;
24     BSS:      load = RAM,  type = bss, define = yes;
25 }