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