Metropoli BBS
VIEWER: sierpin2.asm MODE: TEXT (ASCII)
; Sierpinski Triangle

Ideal
Model Tiny
CodeSeg
P186
Org 100h

Start:      mov ax,13h
            int 10h

            mov bx,3

            mov si,0A0A0h
            mov ds,si

            db 0B9h

DrawLoop:   mov cx,[si]
            xor ch,[bx+si]
            mov [si-318],ch

            dec si
            jnz DrawLoop

            int 16h

            xchg ax,bx
            int 10h
            ret

End Start

[ RETURN TO DIRECTORY ]