]> git.sur5r.net Git - cc65/blobdiff - src/ld65/cfg/pet.cfg
Define HEADER memory area for the EXEHDR segment for consistency reasons with the...
[cc65] / src / ld65 / cfg / pet.cfg
index 5385b3c98524974dd1eea8b953f6409d9141668a..04fa262406d2c54dce6aebb5d710c621fdfaf77d 100644 (file)
@@ -1,18 +1,20 @@
 MEMORY {
-    ZP:  start = $0055, size = $001A, type = rw, define = yes;
-    RAM: start = $03FF, size = $7BFF, file = %O;
+    ZP:     start = $0055, size = $001A, type = rw, define = yes;
+    HEADER: start = $03FF, size = $000E, file = %O;
+    RAM:    start = $040D, size = $7BF1, file = %O;
 }
 SEGMENTS {
-    STARTUP:  load = RAM, type = ro;
-    LOWCODE:  load = RAM, type = ro,               optional = yes;
-    INIT:     load = RAM, type = ro, define = yes, optional = yes;
-    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;
+    EXEHDR:   load = HEADER, type = ro;
+    STARTUP:  load = RAM,    type = ro;
+    LOWCODE:  load = RAM,    type = ro,               optional = yes;
+    INIT:     load = RAM,    type = ro, define = yes, optional = yes;
+    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;
 }
 FEATURES {
     CONDES: segment = INIT,