]> git.sur5r.net Git - cc65/commitdiff
Info about using additional memory
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 23 Sep 2004 18:55:08 +0000 (18:55 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 23 Sep 2004 18:55:08 +0000 (18:55 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@3197 b7a2c559-68d2-44c3-8de9-860c34a00d81

doc/vic20.sgml

index b3af79c6d920a7c0e23a759819aa10bf3e16ef15..67c5b8e142dbe0910ca529d0512e5ed7ddc37299 100644 (file)
@@ -204,6 +204,20 @@ The program return code (low byte) is passed back to BASIC by use of the
 <tt/ST/ variable.
 
 
+<sect1>Using extended memory<p>
+
+The extended memory at $A000 may be added to the heap by using the following
+code:
+
+<tscreen><verb>
+    /* Check for the existence of RAM */
+    if (PEEK(0xA000) == POKE(0xA000, PEEK(0xA000)+1)) {<br>
+        /* Add it to the heap */
+        _heapadd ((void *) 0xA000, 0x2000);
+    }
+</verb></tscreen>
+
+
 
 
 <sect>Bugs/Feedback<p>