Website logo depicts joriszwart.nl

I ❤ to create appealing stuff

Of course I was beaten very bad. A 13 bytes version using rule 90 exists.

Sierpinski 28 bytes running in DOSBox
Sierpinski 28 bytes running in DOSBox
; 28 byte Sierpinski-fractal  Joris Zwart (C) 1998

            .model tiny
            .code
            org 100h

start:
            mov al,13h
x:
            cwd
y:
            test cl,dl
            jne skip
            int 10h

            mov ah,0ch
skip:
            inc dl
            jns y
            inc cl
            jns x

            cbw
            int 16h

            mov ax,3
            int 10h
            ret

            end start
Poem for Wacław Sierpiński

Pseudo-code

For the assembly-impaired here is the pseudo-code:

FOR X = 0 TO 127
    FOR Y = 0 TO 127
        IF X AND Y THEN PLOT X, Y
    NEXT Y
NEXT X
Pseudo-code Sierpinski using bitwise AND.

Downloads

NameDescriptionLast modifiedSize
3 files 13.7 KB
SIERPIN.ASM Assembly source December 2017 259 Bytes Download | View raw
SIERPIN.COM March 2011 28 Bytes Download | View raw
sierpinski-dosbox.png PNG image December 2015 13.4 KB Download | View raw