Prev: 07941 Up: Map Next: 07971
07962: 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 07962 LD BC,0 Do not allow any overhead.
07965 CALL TEST_ROOM Make the test and pass the result to the BC register before returning.
07968 LD B,H
07969 LD C,L
07970 RET
Prev: 07941 Up: Map Next: 07971