}
MEMORY {
ZP: file = "", define = yes, start = __ZPSTART__, size = $001F;
- MAIN: file = %O, define = yes, start = %S, size = __STACKSTART__ - __STACKSIZE__;
+ MAIN: file = %O, start = %S, size = __STACKSTART__ - __STACKSIZE__ - %S;
}
SEGMENTS {
ZEROPAGE: load = ZP, type = zp;