scene.org File Archive

File download

<root>­/­parties­/­2022­/­vccc22­/­christmas_star_challenge/icepic_c64_kickc_vc3_2022.zip

File size:
275 255 bytes (268.80K)
File date:
2022-12-30 11:32:13
Download count:
all-time: 4

Preview

  • 8star-code.png 101.82K
  • 8star.c 329B
  • 8star.png 199.40K
  • 8star.prg 197B
  • file_id.diz 686B

file_id.diz

8star

Author: IcePic of DeadZone
Category: Christmas Challenge
System:   C64
Language: KickC 0.8.6
Len source code:  329 bytes
Len exe file:    197 (could save a byte or two if not jmp * at the end was there but ...)
Len code only:   197 - 14 = 183.
Instructions:
Start vice, or cmdline: x64sc 8star.prg
Description:
It paints four triangles over eachother with a loop from 14 to 0,
placed so they create the 8-pointed star
Comments:
Saved a few bytes using the C construct a=b=c=d=42; for the painting
routine.
Slightly accidental that 42 is the screen code for *, and also the
number I had to use to offset the screen ram to place the star at the
top corner, but I kept it that way.