2 STARTADDRESS: default = $0200;
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
12 # for size of ZP, see runtime/zeropage.s and c1p/extzp.s
13 ZP: file = "", define = yes, start = $0002, size = $001A + $0020;
14 HEAD: file = %O, start = $0000, size = $00B6;
15 MAIN: file = %O, define = yes, start = %S, size = __HIMEM__ - __STACKSIZE__ - %S;
18 ZEROPAGE: load = ZP, type = zp;
19 EXTZP: load = ZP, type = zp, define = yes, optional = yes;
20 BOOT: load = HEAD, type = ro, optional = yes;
21 STARTUP: load = MAIN, type = ro;
22 LOWCODE: load = MAIN, type = ro, optional = yes;
23 ONCE: load = MAIN, type = ro, optional = yes;
24 CODE: load = MAIN, type = rw;
25 RODATA: load = MAIN, type = rw;
26 DATA: load = MAIN, type = rw;
27 BSS: load = MAIN, type = bss, define = yes;
30 CONDES: type = constructor,
31 label = __CONSTRUCTOR_TABLE__,
32 count = __CONSTRUCTOR_COUNT__,
34 CONDES: type = destructor,
35 label = __DESTRUCTOR_TABLE__,
36 count = __DESTRUCTOR_COUNT__,