English
Language : 

NSB8 Datasheet, PDF (29/158 Pages) List of Unclassifed Manufacturers – BASIC interpreter for Z80 family
ITALIAN TECHNOLOGY
grifo®
MEMSET
COMMAND:
MEMSET <memory address>
ACTION:
The upper bound of the program/data memory region available to BASIC is changed to the specified
address, which must be an integer constant in the range of 0 to 65535.
EXAMPLES:
MEMSET 24575
MEMSET 32767
MEMSET 40959
{last memory cell is 5FFFH}
{last cell is 7FFFH}
{last cell is 9FFFH}
REMARKS:
Note that the address specified in a MEMSET command is expressed as a decimal (base 10) number.
Addresses in microcomputer memory are commonly given in HEXADECIMAL (base 16) notation. If
the desired upper memory bound is known only in hexadecimal, it will be necessary to convert the
number into decimal before using MEMSET.
All variables in the program/data area are cleared after MEMSET, but any current program remains
intact.
MEMSET also modifies the copy of BASIC in RAM so that, if any copies of it are made, they will
assume the new memory configuration when executed.
ERROR MESSAGES:
ARG ERROR
The memory address specified as upper bound does not contain usable memory.
OUT OF BOUNDS ERROR
This error occurs because of one of the following four reasons:
1) The address is larger than 65535.
2) if there is a current program, the specified upper bound would lead to a program/data area too
small to hold it.
3) if there is no current program, the specified upper bound implies elimination of the program/
data area altogether.
SEE ALSO:
Section PERSONALIZING BASIC
NSB8
Rel. 5.10
Page 17