Snowflake in the Night
Author: WladAsm
Category: Christmas Challenge
System: PC, MS-DOS
Language: Assembler (fasm)
Len source code: 1054
Len exe file: 59
Len code only: 59
Instructions:
Install a DosBox (or one of its forks) and use it to run snowflk.com.
Description:
The code iterates over a near-full-screen area (80x19 - 1). For each point, it
calculates coordinates relative to the snowflake's center and tests conditions
on their squares (X^2, Y^2) and sum (X^2+Y^2). Side branches are stored in
a 6-byte table that also serves as executable code (initializes counter).
Output via int 29h.
Comments:
My first entry for the contest! :)
Big shoutouts to DrunkFly, Error594, Korrigan Jr., and Rasidel. Greetings to
all retro coders! Happy Holidays and a fantastic New Year 2026!