]> git.sur5r.net Git - cc65/blobdiff - src/ld65/cfg/atmos.cfg
Made stacksize user-adjustable on the cmdline.
[cc65] / src / ld65 / cfg / atmos.cfg
index 15ef471d54beffa32f69194796f55745135b5e6e..b6a3704d557dd5cda81099b64dc34260d054f6e6 100644 (file)
@@ -11,6 +11,7 @@ SEGMENTS {
     CODE:     load = RAM,     type = ro;
     RODATA:   load = RAM,     type = ro;
     DATA:     load = RAM,     type = rw;
+    ZPSAVE:   load = RAM,     type = bss;
     BSS:      load = RAM,     type = bss, define = yes;
     HEAP:     load = RAM,     type = bss, optional = yes; # must sit just below stack
     ZEROPAGE: load = ZP,      type = zp;
@@ -30,7 +31,7 @@ FEATURES {
            count = __INTERRUPTOR_COUNT__;
 }
 SYMBOLS {
-    __STACKSIZE__ = $800;      # 2K stack
+    __STACKSIZE__: value = $0800, weak = yes; # 2k stack
 }