By Bob Huelsdonk
Only line 30001 is required for less than 32K of Memory. The first GOTO 30000 shows result with greater than 32K of Memory. The second GOTO 30000 shows the result with less than 32K of memory.
30000 IF PEEK (203)>128 THEN 30002
30001 PRINT PEEK (202)+ PEEK (203)*256- PEEK (204)- PEEK (205 )*256;” BYTES FREE”: END
30002 PRINT 32767-( PEEK (204)+ PEEK (205)*256);” BYTES + “; PEEK (202)+( PEEK< (203)-128)*256 +1;” BYTES FREE”: END
>GOTO 30000
30719 BYTES + 16226 BYTES FREE
>GOTO 30000
27193 BYTES FREE















