scene.org File Archive

File download

<root>­/­parties­/­2025­/­vccc25­/­christmas_challenge/geirs_c64_asm_65b_vc3-2025.zip

File size:
97 918 bytes (95.62K)
File date:
2025-12-30 23:34:07
Download count:
all-time: 1

Preview

  • file_id.diz 883B
  • result.png 476B
  • snowflake.asm 1.96K
  • snowflake.prg 67B
  • source.png 95.10K

file_id.diz

Snowflake (Commodore C64/6502 Assembler)

Author: Geir Straume
Category: Christmas Challenge
System: C64
Language: Assembler (64tass)
Len source code: 2005 bytes (source with comments)
Len exe file:    67 bytes
Len code only:   65 bytes (excl. load address)
Instructions:
Start the VICE C64 emulator and drag and drop "snowflake.prg" into the emulator window. Enter SYS 843 to start.

Description:
The program contains nine bytes of bit patterns which are used to display the rows of the snowflake on screen.
A tenth bit pattern is represented by a memory location known to be zero.

Each byte is rotated left for the left part of a row, and then right for the right part. Self-modifying code is
used to change the rotate instruction.

The bit patterns are first used to display the upper rows, and then the lower rows.

See commented source code for further implementation details.