477
MEM( ) Function
Return Memory Value
Formats
Where:
var$
Name of string variable whose address you wish to obtain.
address
Memory address being referenced. Numeric expression.
bytes
Number of bytes to return. Numeric expression.
val$
Value you wish to write. String expression.
stmtref
Program line number or label to transfer control to.
Returns
Memory location and information.
Note: This function is mainly for use with external functions; i.e., using the functions
Description
The MEM( ) function provides direct access to memory location through the use of
pointers. ProvideX performs address validation and returns Error #41: Invalid
integer encountered (range error or non-integer) for an invalid
memory location.
Format 1 returns the address of your string variable.
Format 2 returns the contents of a word (16 bits) of memory. The value returned is a
binary value (integer in two's complement format).
Format 3 returns a string consisting of the data at the address specified for the
specified number of bytes.
Format 4 copies your character string value to the address given.