The Sierpinski Triangle in Redcode! Use …

John Metcalf · 10 December 2013 20:12

The Sierpinski Triangle in Redcode! Use pmars -v 132 or change the width to 128 for CoreWin
width  equ 126
trail  equ (sum-CORESIZE%width)
start  equ (trail-width+1)

sum     mov    #3,    @3
ptr     mov.b  trail, sum
add.b  {ptr,  sum
djn    sum,   #start

Comments

John Metcalf: It's not a particularly optimal bombing pattern, but it does make a pretty picture :-)