]> git.sur5r.net Git - cc65/commitdiff
Added comments that say why the ZPSAVE1 and ZPSAVE2 segments must be together.
authorGreg King <gregdk@users.sf.net>
Thu, 8 Jan 2015 22:07:28 +0000 (17:07 -0500)
committerGreg King <gregdk@users.sf.net>
Thu, 8 Jan 2015 22:07:28 +0000 (17:07 -0500)
cfg/atmos.cfg
libsrc/atmos/crt0.s

index 5bb61bb2678766d523cd9cc39cea9781cc4e2f5b..a1f935efa60b37367d292916aff78cfebe7d1149 100644 (file)
@@ -23,8 +23,8 @@ SEGMENTS {
     RODATA:   load = RAM,     type = ro;
     INIT:     load = RAM,     type = ro,  define = yes, optional = yes;
     DATA:     load = RAM,     type = rw;
-    ZPSAVE1:  load = RAM,     type = rw,  define = yes;
-    ZPSAVE2:  load = RAM,     type = bss;
+    ZPSAVE1:  load = RAM,     type = rw,  define = yes; # ZPSAVE1, ZPSAVE2 must be together
+    ZPSAVE2:  load = RAM,     type = bss;               # see "libsrc/atmos/crt0.s"
     BSS:      load = RAM,     type = bss, define = yes;
 }
 FEATURES {
index ecbc0039149ef3a0830b169c53a5677f9dab9dcf..61f40cc9a00cde1590ddb251915952f1b2803221 100644 (file)
@@ -92,6 +92,9 @@ zpsave:
 
         .byte   0
 
+; The segments "ZPSAVE1" and "ZPSAVE2" always must be together.
+; They create a single object (the zpsave buffer).
+
 .segment        "ZPSAVE2"
 
         .res    zpspace - 1