From a74c20803f6353b99abb60d78a628e6ae581ded0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=CE=A0=CE=B1=CE=BB=CE=B1=CE=B9=CE=BF=CE=BB=CF=8C=CE=B3?= =?UTF-8?q?=CE=BF=CF=82?= Date: Sat, 18 Apr 2020 18:10:01 +0200 Subject: [PATCH] Create sierpinski.asm --- examples/sierpinski.asm | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 examples/sierpinski.asm diff --git a/examples/sierpinski.asm b/examples/sierpinski.asm new file mode 100644 index 00000000..d8037c36 --- /dev/null +++ b/examples/sierpinski.asm @@ -0,0 +1,36 @@ + +; Sierpinski triangle fractal viewer for asm2bf obfuscated code contest. +; Released to the public domain by Palaiologos/MENACE @ Apr 2020 + +@a +clrr2 +@b +pshr1 +movr4,r2 +@c +movr5,r1 +modr5,2 +movr6,r4 +modr6,2 +mulr5,r6 +cger5,1 +cmor5,1 +cjn%d +asrr1 +asrr4 +jnzr1,%c +jnzr4,%c +clrr3 +@d +cger3,1 +movr3,.* +cmor3,. +outr3 +popr1 +incr2 +cger2,64 +cjz%b +out10 +incr1 +cger1,64 +cjz%a