From 9570fb4f630816f761af8066e5c2d1c8637d66cc Mon Sep 17 00:00:00 2001 From: cuz Date: Thu, 23 Sep 2004 18:55:08 +0000 Subject: [PATCH] Info about using additional memory git-svn-id: svn://svn.cc65.org/cc65/trunk@3197 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- doc/vic20.sgml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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

-- 2.39.5