]> git.sur5r.net Git - cc65/blobdiff - cfg/apple2-asm.cfg
Switched Apple II output format to AppleSingle.
[cc65] / cfg / apple2-asm.cfg
index 1e187764ca0895b4803a20d27db6131969a3cde5..76bca1b865420170916ca11a350bda571c7a0e50 100644 (file)
@@ -4,19 +4,19 @@ FEATURES {
     STARTADDRESS: default = $0803;
 }
 SYMBOLS {
-    __LOADADDR__: type = weak, value = __CODE_RUN__;
-    __LOADSIZE__: type = weak, value = __BSS_RUN__ - __CODE_RUN__;
+    __FILETYPE__: type = weak, value = $0006; # ProDOS file type
 }
 MEMORY {
-    ZP:                start = $0080, size = $001A,      define = yes;
-    HEADER: file = %O, start = $0000, size = $0004;
-    RAM:    file = %O, start = %S,    size = $C000 - %S;
+    ZP:     file = "",               start = $0000,         size = $00FF;
+    HEADER: file = %O,               start = %S - $003A,    size = $003A;
+    MAIN:   file = %O, define = yes, start = %S,            size = $C000 - %S;
+    BSS:    file = "",               start = __MAIN_LAST__, size = $C000 - __MAIN_LAST__;
 }
 SEGMENTS {
     ZEROPAGE: load = ZP,     type = zp,  optional = yes;
     EXEHDR:   load = HEADER, type = ro,  optional = yes;
-    CODE:     load = RAM,    type = rw,  optional = yes, define = yes;
-    RODATA:   load = RAM,    type = ro,  optional = yes;
-    DATA:     load = RAM,    type = rw,  optional = yes;
-    BSS:      load = RAM,    type = bss, optional = yes, define = yes;
+    CODE:     load = MAIN,   type = rw;
+    RODATA:   load = MAIN,   type = ro,  optional = yes;
+    DATA:     load = MAIN,   type = rw,  optional = yes;
+    BSS:      load = BSS,    type = bss, optional = yes, define = yes;
 }