Rpbasic-52 programming guide, Mtop – Remote Processing BASIC 52 User Manual

Page 82

Advertising
background image

RPBASIC-52 PROGRAMMING GUIDE

2-63

MTOP

Syntax:

M T O P
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:

Comm and, run

Use:

MTOP =30000
P R I N T M T O P

Cards:

A l l. C om m a nd is li m it in g on c ar ds w it h 1 2 8K o r m o re o f R A M .

DESCRIPTIONS

The MT OP system co ntrol value is the maximum external data mem ory address which RPB ASIC-52 w ill use
for RAM program spa ce and variab le and string storage . MTO P is not necessa rily the top of available
e x te r na l da t a m e m o r y. O n ca r ds w i th 3 2 K of R A M , M T O P i s au t om a t ic a ll y se t to 7 E 00 H o n po w e r u p . O n
cards with 128K or more of RAM, MT OP is set to 0FFFFH on power up.

RELATED

S T @ , L D @

E R R O R

M E M O R Y A L L O C A T I O N

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

EXAMPLE

? MTOP
65535

Advertising