RAMTOP

Syntax

RAMTOP

Location

Beuletools

The function returns the active memory in KBytes, whether this is free memory or not. On the original QL without any expansion this function will return 128, whereas on a QL expanded to 640K, 640 is returned.

CROSS-REFERENCE

The value of RAMTOP can be lowered with RESET to emulate a machine which has less available memory.

PRINT(PHYSTOP/1024)-128 gives the value of the additional memory.

FREE_MEM and FREE return the actually available memory.