scene.org File Archive

File download

<root>­/­parties­/­2024­/­vccc24­/­christmas_challenge/frankbreuer_zxspectrum_sinclairbasic_208b_vc3-2024.zip

File size:
4 330 bytes (4.23K)
File date:
2024-12-29 14:13:04
Download count:
all-time: 0

Preview

  • code.png 4.63K
  • file_id.diz 1.04K
  • result.png 3.73K
  • xmas2024final.tap 233B

file_id.diz

Vintage Computing Christmas Challenge 2024

Author: Frank Breuer
Category: Christmas Challenge
System:   ZX Spectrum 48k
Language: Sinclair Basic 48k
Len source code: 
Len exe file:    
Len code only:   208bytes  (difference from using PRINT 65536-USR 7962 right before and after loading)
Instructions:

use FUSE Emulator
menu Machine/Select -> Spectrum 48k
menu File/Open -> xmas2024final.tap
press "j", strg-p (twice) and ENTER -> should display LOAD ""
press r and ENTER -> RUN

Description:

line 10 draws the top of the present
line 20 and 30 start to loops, each from 0 to 18. Equals the width and height of the present
line 40 writes for each x,y position of the loop one of the pre-defined characters (" |-+") of the present determined by an TRUE/FALSE algorithm

in Sinclair Basic TRUE returns 1 and FALSE returns 0, so it simplifies the test if x/y is 0/9/18

Comments:
Instead of using the "!" char for the vertical line, is chose the "|". It doesnt alter the challenge in any way. But it looks better this way on the Speccy.