]> git.sur5r.net Git - cc65/blobdiff - cfg/gamate.cfg
fixed copypaste errors
[cc65] / cfg / gamate.cfg
index 577dfeb1d8fb9319dfa89cb7ada26e169038da81..90ced1ea5d2eb5299966eff2ccf3be48aa498b63 100644 (file)
@@ -8,23 +8,25 @@ SYMBOLS {
 MEMORY {
         # 0000-03ff is RAM
         # FIXME: what zp range can we actually use?
-        ZP: start = $0080, size = $80;
+        # $0a-$11 is used by IRQ/NMI, $e8 is used by NMI
+        ZP: start = $0012, size = $e8 - $12;
         CPUSTACK: start = $0100, size =$100;
-        RAM: start = $0200, size = $180, define = yes;
+        RAM: start = $0200, size = $200 - __STACKSIZE__, define = yes;
 
+        CARTHEADER:   file = %O, define = yes, start = %S,               size = $0029;
         # 6000-e000 can be (Cartridge) ROM
         # WARNING: fill value must be $00 else it will no more work
         #ROM: start = $6000, size = $1000, fill = yes, fillval = $00, file = %O, define = yes;
         #ROMFILL: start = $7000, size = $7000, fill = yes, fillval = $00, file = %O, define = yes;
         # for images that have code >$6fff we must calculate the checksum!
-        ROM: start = $6000, size = $8000, fill = yes, fillval = $00, file = %O, define = yes;
+        ROM: start = $6000 + $29, size = $8000 - $29, fill = yes, fillval = $00, file = %O, define = yes;
 }
 
 SEGMENTS {
         ZEROPAGE: load = ZP, type = zp, define = yes;
         EXTZP: load = ZP, type = zp, define = yes, optional = yes;
         APPZP: load = ZP, type = zp, define = yes, optional = yes;
-        STARTUP:   load = ROM,           type = ro, define=yes;
+        STARTUP:   load = CARTHEADER,           type = ro, define=yes;
         INIT:    load = ROM, type = ro, define = yes, optional = yes;
         CODE: load = ROM, type = ro, define=yes;
         RODATA: load = ROM, type = ro, define=yes;