Retro Rocket OS
BASIC-Powered Operating System
Loading...
Searching...
No Matches
MEMORY Function
MEMORY

Returns the total system memory in bytes, including both used and free portions, for BASIC programs and the operating system.


Examples

REM Print total system memory
PRINT MEMORY

On a 4 GB machine this will typically print:

4294967296
REM Derive free percentage
PRINT "Free % = "; (MEMFREE * 100) / MEMORY

If MEMFREE reports 3758096384 on a 4 GB machine, this prints:

Free % = 87

Notes

  • The value is in bytes, returned as a 64-bit integer.
  • Reflects the installed physical RAM available to Retro Rocket OS.
  • Together with MEMFREE and MEMUSED, allows monitoring of system usage.
  • On machines marketed as “4 GB”, the total may be slightly less due to reserved space for hardware.


See also: MEMFREE · MEMUSED · MEMRELEASE · MEMALLOC