Please enable JavaScript to view this site.

A-Shell Consolidated Reference

xcall MIAMEX, MX_MEMORY, newsizk, status

MX_MEMORY (MIAMEX 113) allows you to change the size of your user memory partition on the fly, although not within a function or procedure.  

Parameters

newsizk

is the desired new size (in Kilobyte units, e.g. 1024 = 1024K).

status  (F6)

Value

Meaning

0

successful

-1

invalid—pathologically small—newsizk value.

-2

the program is currently executing a function or procedure; this conflicts with the memory resize operation due to inter-dependencies between the partition and the function call stack.

 

See Also

MEMORY.LIT, which is implemented via the MX_MEMORY function.
The MEMORY system parameter.