GetMem

Prev Next Home Home Table Of Contents Index

GetMem (Number) : Segment

GetMem allocates the amount of memory specified in Number and returns the memory segment where the memory was allocated. The memory segment is filled with 0s. The maximum size of the memory block is 65504 bytes.

You can then read and write to this memory area using the Mem commands.


Example:
var RamBlock RamBlock = GetMem(2000) ;allocate 2000 bytes of memory Mem(RamBlock,0) = 5 ;writes the number 5 to the first byte

See Also: FreeMem

Category: Memory

Prev Next Home Home Table Of Contents Index

Sponsors
Shopping
Forum
Forum
email
EMail
Index
Index
Home
Home