scene.org File Archive

File download

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

File size:
6 166 bytes (6.02K)
File date:
2024-01-03 14:15:18
Download count:
all-time: 2

Preview

  • UriS_spectrum_basic_vc3-2023/ dir
  • UriS_spectrum_basic_vc3-2023/file_id.diz 950B
  • UriS_spectrum_basic_vc3-2023/result.png 2.58K
  • UriS_spectrum_basic_vc3-2023/source.png 2.57K
  • UriS_spectrum_basic_vc3-2023/source.txt 104B
  • UriS_spectrum_basic_vc3-2023/vc3-2023-UriS.tap 86B

file_id.diz

vc3-2023-UriS

Author: UriS
Category: Christmas Challenge
System:   ZX Spectrum
Language: BASIC
Len source code: 61 bytes (spectrum basic inner text)
Len exe file:    86 bytes (image of tape record: 25 bytes of header + 61 bytes of code)
Len code only:   61 bytes
Instructions: Install fuse (or some other zx spectrum emulator), drag and drop the vc3-2023-UriS.tap onto fuse.exe (or into running fuse window) for load, then press R (RUN) and then Eneter for run programm.
Description: Program just does some calculating, sometimes it prints asterisks ;)
Comments: The task was hacked by math ;) Unfortunately zx spectrum basic does not have "mod" or similar operation to get remainder of division, so I used the idea of cos(y+x)*PI/3=-1 and cos(y-x)*PI/3=-1 to calculate positions where need to print asterisks. Also I used some of spectrum basic fits to shrink the size of program. Resulting executable not very fast, but it is short :)