Bytesavers Hint

Author(s): Dave Hallas
Publication: Syntax
Pub Details: Syntax/Syntax ZX80 v3 n5 (Volume 3, Issue 5)
Date: May 1982
Pages: 17

If you are using a PRINT after a line number simply to add an empty line, use two commas instead. Often empty lines are useful to clean up a screen display. These two programs display the same spacing–the second saves you four bytes:

Program 1

  10 INPUT A
20 PRINT A
25 PRINT
30 INPUT B
40 PRINT B (bytes used=34)

Program 2

  10 INPUT A
20 PRINT A
30 INPUT B
40 PRINT ,,B (bytes used=30)

Each substitution of commas for blank PRINT lines saves four bytes.

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