mirror of
https://github.com/cc65/cc65.git
synced 2025-01-26 17:36:57 +00:00
Info about using additional memory
git-svn-id: svn://svn.cc65.org/cc65/trunk@3197 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
11e4382b8d
commit
9570fb4f63
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user