scene.org File Archive

File download

<root>­/­parties­/­2025­/­vccc25­/­christmas_challenge/frankbreuer_sinclairzxspectrum_sinclairbasic_311b_vc3-2025.zip

File size:
9 401 bytes (9.18K)
File date:
2025-12-30 23:34:07
Download count:
all-time: 1

Preview

  • file_id.diz 939B
  • xmas2025final.tap 380B
  • xmas2025final.z80 3.14K
  • xmas2025final_code.png 5.60K
  • xmas2025final_result.png 4.73K

file_id.diz

XMAS Challenge 2025

Author: Frank Breuer
Category: Christmas Challenge
System:   ZX Spectrum ZX80
Language: Sinclair BASIC
Len source code: 311bytes

Instructions:
use FUSE-Emulator
open .tap or .z80-File
type in RUN Command
press ENTER

Description:

each sector of the snowflake is 8x8 pixels wide
so we can store the position of the "flakes" as bitpattern in 8 bytes
then we iterate over the bits in each byte and print for each bit set a flake in all 4 sectors of the flake

since Sinclair BASIC lacks built-in bit-operations, a graphical approach is used
data is poked into screen memory and tested if pixel is set or not, using a built-in function

in the end we draw the horizontal and vertical line,using the existing/running loops
its a little bit redundant, but gets the job done

Comments:
program length is calculated with "PRINT 65536-USR 7962"-method. dont know, if this is the best or correct way