]> git.sur5r.net Git - cc65/commitdiff
add code to add free shadow memory to heap (currently disabled)
authorChristian Groessler <chris@groessler.org>
Wed, 11 Sep 2013 20:43:35 +0000 (22:43 +0200)
committerChristian Groessler <chris@groessler.org>
Wed, 11 Sep 2013 20:43:35 +0000 (22:43 +0200)
cfg/atarixl.cfg
libsrc/atari/crt0.s

index 1968ecd8ec26d074e6bfce5fa1874e2c83f6617f..4933817791efd6877416a1cd9b4c0ad13a2141da 100644 (file)
@@ -41,7 +41,7 @@ MEMORY {
     CHARGEN:       file = "", define = yes, start = $D800, size = $0400;
 
 # memory beneath the ROM
-    RAM_BELOW_ROM: file = "",               start = $DC00, size = $FFF0 - $DC00;
+    RAM_BELOW_ROM: file = "", define = yes, start = $DC00, size = $FFF0 - $DC00;
 }
 
 SEGMENTS {
index db8a595e30ea3a662092d0d026548face0e9552a..eb5de1f40b29c24f0375a619c36c04a580e1e7c5 100644 (file)
 
         jsr     initlib
 
+.if 0
+.if .defined(__ATARIXL__)
+        .import __heapadd
+        .import pushax
+        .import __RAM_BELOW_ROM_START__
+        .import __RAM_BELOW_ROM_SIZE__
+        .import __RAM_BELOW_ROM_LAST__
+
+        lda     #<__RAM_BELOW_ROM_LAST__
+        ldx     #>__RAM_BELOW_ROM_LAST__
+        jsr     pushax
+        lda     #<(__RAM_BELOW_ROM_SIZE__ - (__RAM_BELOW_ROM_LAST__ - __RAM_BELOW_ROM_START__))
+        ldx     #>(__RAM_BELOW_ROM_SIZE__ - (__RAM_BELOW_ROM_LAST__ - __RAM_BELOW_ROM_START__))
+        jsr     __heapadd
+.endif
+.endif
+
 ; Set left margin to 0
 
         lda     LMARGN