scene.org File Archive

File download

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

File size:
7 646 bytes (7.47K)
File date:
2024-01-03 14:15:18
Download count:
all-time: 3

Preview

  • file_id.diz 1.32K
  • xmas2023.tap 228B
  • xmas2023.z80 2.57K
  • xmas2023_listing.txt 168B
  • xmas2023_screenshot_listing_640x480.png 3.13K
  • xmas2023_screenshot_result_640x480.png 2.60K

file_id.diz

xmas2023

Author: Frank Breuer (herbertzan)
Category: Christmas Challenge
System:   ZX Spectrum 48k
Language: Sinclair Basic
Len source code: dont know
Len exe file:    228bytes (.TAP-File), 2632bytes (.Z80-File)
Len code only:   dont know


Instructions:
any ZX Spectrum emulator (e.g. FUSE) that supports .TAP or .Z80 files will do

using FUSE emulator:
install FUSE emulator first ! ;)
make sure, that ZX Spectrum 48k is emulated (->Machine/Select/Spectrum 48k)

using .TAP-File:
drag/drop "xmas2023.tap" file into FUSE window (or use File/Open menu)
press "r" -> RUN will show up in bottom line
then press "ENTER" -> programm will start

using .Z80-File:
drag/drop "xmas2023.z80" file into FUSE window (or use File/Open menu)
notice "RUN" shows up in bottom line
just press "ENTER" -> programm will start


Description:
we have two loops
the inner loop gives us the x-position of our star (3,9,15)
the outer loop iterates the y-position (0 to 14)
the outer loop also gives us a +diff (x+y) and a -diff (x-y) on the x-position
we check if x+y<=18 
	if true, then we draw a star on line y on position x+y
	and also a star on line 18-y on position x+y
we check if x-y>=0 
	if true, then we draw a star on line y on position x-y
	and also a star on line 18-y on position x-y


Comments:
I like my ZX Spectrum ! ;)