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.