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.