scene.org File Archive

File download

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

File size:
496 637 bytes (485.00K)
File date:
2022-12-30 11:32:13
Download count:
all-time: 4

Preview

  • 8stack2-prg.png 310.52K
  • 8stack2.asm 573B
  • 8stack2.png 268.73K
  • 8stack2.prg 75B
  • file_id.diz 1.05K

file_id.diz

8star

Author: IcePic of DeadZone
Category: Christmas Challenge
System:   C64
Language: asm (KickAssembler)
Len source code:  573 with comments as seen in the picture of the source, 263 with  shortened labels and no comments
Len exe file:    75
Len code only:   71 (4b overhead for load addr and injected stack return addr)
Instructions:
Start vice, or cmdline: x64sc 8stack2.prg , make sure  -autostartprgmode is not
enabled or the screen output will be different and move the star.
This would not matter if one must clear the screen with the commented out JSR, but 3 bytes is a lot here. ;)
Description:
Basically a short RLE "unpacker" that alternates between painting spaces and strs for each run.
Comments:
Loads into the stack for autostart. Works fine on VICE, not tested with crazy fastloaders or whatever that either change the screen or the stack pointer compared to a stock C64.

Credits:
Got some help and inspiration from Sibiria on #openbsd.se / libera.chat to save a bunch of bytes by not printing carriage-returns at all. Would have been lots larger otherwise.