Bytes Remaining (8K)

Author(s): Ian Logan
Publication: Syntax
Pub Details: Syntax/Syntax ZX80 v2 n12 (Volume 2, Issue 12)
Date: December 1981
Pages: 5

Enter this line as the first line of your 8K program:

   1 REM E0RNDLN ACS : FAST AT 5
= GOSUB PI FAST AT TAN

Start by entering GOSUB PI FAST AT TAN and then backspace to add 1 REM…. The spacing is critical! Note the 2 spaces between = and GOSUB.

Call this routine whenever you need it by typing in the immediate mode (with no line number) PRINT USR 16514. I set this routine to give 800 for a 1K machine. It’s a pretty good representation of the true number of available bytes for a BASIC program.

We got 799 on our 1K machine and 15391 on our 16K machine.–AZ

Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.