Star67
Author: Uwe Geiken
Category: Christmas Challenge
System: ZX Spectrum
Language: BASIC
Len source code: 67 = 61 (source) + 6 (variable)
Len exe file: 92 (tap file)
Len code only: 67
Instructions: LOAD "" (or drag-n-drop on the emulator)
Description:
The outer loop runs from -4 to 4. The inner loop draws the stars as horizontal and vertical stripes. The stored value 4 in variable F can be reused as values 8=F+F and 12=INT(PI)*F. Symmetry is used with the help of ABS.
Comments:
The program will be 2 bytes longer if the variable is defined in the program (with LET F=VAL "4":).
On the ZX Spectrum each keyword (FOR, ABS, INT, ...) is stored in only one byte. Literal numbers are avoided because an additional 6 bytes are stored invisibly in the source code for each number. (VAL "4" is longer than just 4 in the source code, but the file size is shorter.)