scene.org File Archive

File download

<root>­/­parties­/­2023­/­vccc23­/­christmas-diamonds/jtn4d_zxspectrum_basic_vc3-2023.zip

File size:
8 052 bytes (7.86K)
File date:
2024-01-03 14:15:18
Download count:
all-time: 4

Preview

  • file_id.diz.txt 594B
  • result.png 5.61K
  • snow.tap 86B
  • source.png 4.08K
  • source.txt 148B

file_id.diz

SNOW

Author: jtn//4d
Category: Christmas Challenge
System:   ZX Spectrum
Language: BASIC
Len source code: 61 bytes = 55 (source) + 6 variable
Len exe file:    86 bytes of tap file
Len code only:   61 bytes
Instructions: LOAD "" (or drag-n-drop on the any ZX Spectrum emulator like ZX Spin, Fuse, SpecEMU etc)
Description: Used SIN function and two FOR's cycles. Sine amplitude constant 2.72 was selected experimentally.
Comments: S variable already inited (saved with basic file) and program will be 3 bytes longer if the variable is defined in the program (with LET S=VAL "18"). 

   2 FOR i=-s TO s: FOR j=PI TO s STEP EXP SQR PI: PRINT AT j+VAL "2.7*SIN(i*PI/6)",i;"*": NEXT j: NEXT i

CLEAR: LET s=18: SAVE "snow" LINE 1