scene.org File Archive

File download

<root>­/­parties­/­2022­/­vccc22­/­christmas_star_challenge/brayn3_spectrum_basic_vc3-2022.zip

File size:
4 282 bytes (4.18K)
File date:
2022-12-30 11:32:13
Download count:
all-time: 13

Preview

  • file_id.diz 886B
  • result.png 2.89K
  • source.txt 240B
  • star67.tap 92B

file_id.diz

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.)