RosettaCodeData/Task/Memory-allocation/ZX-Spectrum-Basic/memory-allocation.basic

4 lines
190 B
Plaintext

10 REM This code is written for a 48k spectrum
20 CLEAR 65535 - 8192: REM reserve 8192 bytes of memory
30 CLEAR 65535: REM unreserve the memory, moving the ramtop back to the top of the ram