Snowflake
Author: neon / darklite
Category: Christmas Challenge
System: ZX Spectrum
Language: Assembler
Len source code: 468
Len exe file: 118 (tape image)
Len code only: 35
Instructions:
Load the .tap file in any ZX Spectrum emulator or run on a real
machine using DivMMC or similar.
Description:
The code plots the snowflake from a bitmap. See the source for details.
Comments:
The tap file contains a pretty standard but unoptimized BASIC
launcher. If you just want to look at the compiled program, see the
bin file.
The assembler from SDCC is used to assemble the file. I use my own
linker, but to build manually with SDCC you can use this:
$ sdasz80 -o snowflake.rel snowflake.s
$ sdcc --code-loc 0xdc02 --no-std-crt0 snowflake.rel
$ makebin -s 56357 -p snowflake.ihx - | dd bs=1 skip=0xdc02 of=snowflake.bin