scene.org File Archive

File download

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

File size:
6 112 bytes (5.97K)
File date:
2025-12-30 23:34:07
Download count:
all-time: 1

Preview

  • code.png 2.03K
  • file_id.diz 803B
  • result.png 2.21K
  • snowflake.prg 82B

file_id.diz

Christmas Snowflake C64 80b

Author:   Logiker
Category: Christmas Challenge
System:   C64
Language: BASIC V2.0
Len source code: 89
Len exe file:    82
Len code only:   80

Usage:
Use Vice or another emulator and run it.

Code:
0fOi=-9to9:fOj=-9to9:?cH(41-(9ori*j=0<(pE(2117+aB(i))aN2^aB(j)/2)));:nE:?:nE:rem{73}{146}{4}{9}{114}{48}{81}{2}

The programm goes over the square using coordinates from -9 to +9. 0/0 is the center of the snowflake.
i*j=0 ... If i or j are zero, a star is painted. That's the horizontal or vertical line.
pE(2117+ ... Read the bit form the values, that are just after REM. Those are the 8 bytes (8x8 square(s)) between the horzintal and vertical lines.
aN2^aB(j)/2 ... We check the bit. Because i goes from 1 to 8 (and not 0 to 7) we must devide by 2.