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 ! ;)