]> git.sur5r.net Git - cc65/blobdiff - src/ld65/cfg/apple2.cfg
Better handling of imports in the ExprNode structure.
[cc65] / src / ld65 / cfg / apple2.cfg
index e1ef86597d469ac94c9ed2c72549f183077acbcf..68c76502e80f9356cdd2c64c437e238c857ab574 100644 (file)
@@ -3,12 +3,15 @@
 FEATURES {
     STARTADDRESS: default = $0803;
 }
+SYMBOLS {
+    __STACKSIZE__: value = $0800, weak = yes; # 2k stack
+}
 MEMORY {
-    ZP:     start = $0080, size = $001A,                 define = yes;
-    HEADER: start = $0000, size = $0004,      file = %O;
-    RAM:    start = %S,    size = $9600 - %S, file = %O, define = yes;
-    MOVE:   start = $0000, size = $FFFF,      file = %O, define = yes;
-    LC:     start = $D400, size = $0C00,                 define = yes;
+    ZP:                define = yes, start = $0080, size = $001A;
+    HEADER: file = %O,               start = $0000, size = $0004;
+    RAM:    file = %O, define = yes, start = %S,    size = $9600 - __STACKSIZE__ - %S;
+    MOVE:   file = %O, define = yes, start = $0000, size = $FFFF;
+    LC:                define = yes, start = $D400, size = $0C00;
 }
 SEGMENTS {
     ZEROPAGE: load = ZP,              type = zp;
@@ -32,11 +35,8 @@ FEATURES {
             type    = destructor,
             label   = __DESTRUCTOR_TABLE__,
             count   = __DESTRUCTOR_COUNT__;
-    CONDES: type    = interruptor,
-            segment = RODATA,
+    CONDES: segment = RODATA,
+            type    = interruptor,
             label   = __INTERRUPTOR_TABLE__,
             count   = __INTERRUPTOR_COUNT__;
 }
-SYMBOLS {
-    __STACKSIZE__ = $0800; # 2k stack
-}