From: cuz Date: Thu, 23 Sep 2004 18:55:08 +0000 (+0000) Subject: Info about using additional memory X-Git-Tag: V2.12.0~638 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9570fb4f630816f761af8066e5c2d1c8637d66cc;p=cc65 Info about using additional memory git-svn-id: svn://svn.cc65.org/cc65/trunk@3197 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/doc/vic20.sgml b/doc/vic20.sgml index b3af79c6d..67c5b8e14 100644 --- a/doc/vic20.sgml +++ b/doc/vic20.sgml @@ -204,6 +204,20 @@ The program return code (low byte) is passed back to BASIC by use of the Using extended memory

+ +The extended memory at $A000 may be added to the heap by using the following +code: + + + /* Check for the existence of RAM */ + if (PEEK(0xA000) == POKE(0xA000, PEEK(0xA000)+1)) {
+ /* Add it to the heap */ + _heapadd ((void *) 0xA000, 0x2000); + } +
+ + Bugs/Feedback