]> git.sur5r.net Git - cc65/blobdiff - src/ld65/cfg/module.cfg
Added classification macros for file types from struct dirent.
[cc65] / src / ld65 / cfg / module.cfg
index 7783f995afe4d29fecd35b9d5a9c675617ae03e5..edc87fb175d2cd2f928eb9c0e59f0628e15e43a5 100644 (file)
@@ -1,20 +1,21 @@
 MEMORY {
-    ZP: start = $0000, size = $0100, type = rw, define = yes;
-    COMBINED: start = $0000, size = $FFFF, file = %O;
+    ZP:       file = %O, start = $0000, size = $0100, type = rw, define = yes;
+    COMBINED: file = %O, start = $0000, size = $FFFF;
 }
 SEGMENTS {
-    JUMPTABLE: load = COMBINED, type = wprot;
-    CODE: load = COMBINED, type = wprot;
-    RODATA: load = COMBINED, type = wprot;
-    DATA: load = COMBINED, type = rw, define = yes;
-    BSS: load = COMBINED, type = bss, define = yes;
-    ZEROPAGE: load = ZP, type = zp;
+    JUMPTABLE: load = COMBINED, type = ro;
+    INIT:      load = COMBINED, type = ro,  optional = yes;
+    CODE:      load = COMBINED, type = ro;
+    RODATA:    load = COMBINED, type = ro;
+    DATA:      load = COMBINED, type = rw,  define = yes;
+    BSS:       load = COMBINED, type = bss, define = yes;
+    ZEROPAGE:  load = ZP,       type = zp;
+    EXTZP:     load = ZP,       type = zp;
 }
 FILES {
     %O: format = o65;
 }
 FORMATS {
-    o65: os = cc65, type = small;
+    o65: os   = cc65,
+         type = small;
 }
-
-