beautypg.com

Basic programming guide – Remote Processing BASIC for the CX-10 Modbus User Manual

Page 41

background image

BASIC PROGRAMMING GUIDE

2-32

MTOP

Syntax:

MTOP
MTOP = last valid RAM address

Function:

Reads or assigns the top of external data memory which will be used by Basic for variable, string,
and RAM program storage

Mode:

Command, run

Use:

MTOP=30000
PRINT MTOP

DESCRIPTION

The MTOP system control value is the maximum external data memory address which BASIC-52 will use for
RAM program space and variable and string storage. MTOP is not necessarily the top of available external
data memory. On cards with 32K of RAM, MTOP is automatically set to 7E00H on power up. On cards
with 128K or more of RAM, MTOP is set to 0FFFFH on power up.

RELATED

ST@, LD@

ERROR

MEMORY ALLOCATION

MTOP has been assigned a value greater than top of external data memory.

EXAMPLE

? MTOP

65535