+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, define = yes, start = %S, size = $10000 - __STACKSIZE__;
+ ZP: file = "", define = yes, start = __ZPSTART__, size = $001F;
+ MAIN: file = %O, define = yes, start = %S, size = __STACKSTART__ - __STACKSIZE__;
}
SEGMENTS {
ZEROPAGE: load = ZP, type = zp;