X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;ds=sidebyside;f=cfg%2Fnone.cfg;h=cedd2d839dff089428cba53183941984f9640423;hb=7e6942953ce10a28ad4b19303aefe8e0505c6dd1;hp=6742da7c8d93c06c9c0ff986a1e6f735c92e01c6;hpb=5dcebbccb65924197ac9078fb90b6d08bd3f6823;p=cc65 diff --git a/cfg/none.cfg b/cfg/none.cfg index 6742da7c8..cedd2d839 100644 --- a/cfg/none.cfg +++ b/cfg/none.cfg @@ -1,12 +1,18 @@ +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; + 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;