Prev: 1F05 Up: Map Next: 1F23
1F1A: THE 'FREE MEMORY' SUBROUTINE
There is no BASIC command 'FRE' in the Spectrum but there is a subroutine for performing such a task.
An estimate of the amount of free space can be found at any time by using 'PRINT 65536-USR 7962'.
Output
BC STKEND+80-SP (free space * -1)
FREE_MEM 1F1A LD BC,$0000 Do not allow any overhead.
1F1D CALL TEST_ROOM Make the test and pass the result to the BC register before returning.
1F20 LD B,H
1F21 LD C,L
1F22 RET
Prev: 1F05 Up: Map Next: 1F23