]> git.sur5r.net Git - cc65/blobdiff - cfg/none.cfg
cfg/atari-xex.cfg: fix typo in comment
[cc65] / cfg / none.cfg
index dcee604195ffc4d9d690780efa13787319774e37..cedd2d839dff089428cba53183941984f9640423 100644 (file)
@@ -1,18 +1,24 @@
+FEATURES {
+    STARTADDRESS: default = $1000;
+}
 SYMBOLS {
-    __STACKSIZE__: type = weak, value = $0800; # 2k stack
+    __STACKSIZE__:  type = weak, value = $0800; # 2k stack
+    __STACKSTART__: type = weak, value = $8000;
+    __ZPSTART__:    type = weak, value = $0080;
 }
 MEMORY {
-    ZP:   file = "", define = yes, start = $0000, size = $0001F;
-    MAIN: file = %O,               start = %S,    size = $10000 - __STACKSIZE__;
+    ZP:   file = "", define = yes, start = __ZPSTART__, size = $001F;
+    MAIN: file = %O,               start = %S,          size = __STACKSTART__ - __STACKSIZE__ - %S;
 }
 SEGMENTS {
     ZEROPAGE: load = ZP,   type = zp;
-    LOWCODE:  load = MAIN, type = ro,                optional = yes;
-    ONCE:     load = MAIN, type = ro,  define = yes, optional = yes;
+    STARTUP:  load = MAIN, type = ro,  optional = yes;
+    LOWCODE:  load = MAIN, type = ro,  optional = yes;
+    ONCE:     load = MAIN, type = ro,  optional = yes;
     CODE:     load = MAIN, type = rw;
     RODATA:   load = MAIN, type = rw;
     DATA:     load = MAIN, type = rw;
-    BSS:      load = MAIN, type = bss, define = yes;
+    BSS:      load = MAIN, type = bss, define   = yes;
 }
 FEATURES {
     CONDES: type    = constructor,