<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to 2: Memory management functions.</title><link href="https://sourceforge.net/p/tntbasic/feature-requests/2/" rel="alternate"/><link href="https://sourceforge.net/p/tntbasic/feature-requests/2/feed.atom" rel="self"/><id>https://sourceforge.net/p/tntbasic/feature-requests/2/</id><updated>2006-02-03T00:04:13Z</updated><subtitle>Recent changes to 2: Memory management functions.</subtitle><entry><title>Memory management functions.</title><link href="https://sourceforge.net/p/tntbasic/feature-requests/2/" rel="alternate"/><published>2006-02-03T00:04:13Z</published><updated>2006-02-03T00:04:13Z</updated><author><name>Danny (nods)</name><uri>https://sourceforge.net/u/allnodcoms/</uri></author><id>https://sourceforge.netf4b404753b7394d694142232fd11af01319b4ada</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;The addition of a group of memory management functions with which to &lt;br /&gt;
create, locate, navigate and alter the contents of 'memory banks' (to coin &lt;br /&gt;
an AMOS / STOS phrase). Suggested functions (lifted directly from the &lt;br /&gt;
manuals for the previously mentioned apps):&lt;/p&gt;
&lt;p&gt;"Reserve As (bankNum, lengthInBytes)" //Create a user defined block of &lt;br /&gt;
[zeroed] memory on the tb heap&lt;/p&gt;
&lt;p&gt;"addr=Start(bankNum)" //loads the int addr with the address of the first &lt;br /&gt;
byte of memblock bankNum&lt;/p&gt;
&lt;p&gt;"size=Length(bankNum)" // returns memblock size in bytes&lt;/p&gt;
&lt;p&gt;"Erase(bankNum)" //Delete the memblock bankNum&lt;/p&gt;
&lt;p&gt;"byte=Peek(addr); word=Deek(addr); long=Leek(addr)" //Get values held &lt;br /&gt;
at addr&lt;/p&gt;
&lt;p&gt;"Poke(byte, addr); Doke(word, addr); Loke(long, addr)" //Set values held at &lt;br /&gt;
addr&lt;/p&gt;
&lt;p&gt;"addr=Varptr(variableName)" //Get address of variable&lt;/p&gt;
&lt;p&gt;"bool=Exists(bankNum)" //Has bankNum been defined. Not originally &lt;br /&gt;
present, but a handy addition&lt;/p&gt;
&lt;p&gt;If this were to be implemented, it would also be 'really' handy to be able &lt;br /&gt;
to define the values of integers in hex and binary string notation (for &lt;br /&gt;
masking and other binary operations).&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>