Skip to content

Instantly share code, notes, and snippets.

@yuriks
Created January 22, 2016 07:03
Show Gist options
  • Save yuriks/efaa7ff8608dd49169d7 to your computer and use it in GitHub Desktop.
Save yuriks/efaa7ff8608dd49169d7 to your computer and use it in GitHub Desktop.
Nested loop test
.constf foo0(0.1 , 0.0, 0.0 , 1.0)
.constf foo1(0.0 , 0.0, 0.0 , 1.0)
.constf foo2(0.0 , 0.0, 0.0 , 1.0)
.constf foo3(0.0 , 0.0, 0.11, 1.0)
.constf foo4(0.0 , 0.0, 0.0 , 1.0)
.constf foo5(0.0 , 0.0, 0.0 , 1.0)
.consti loopParams1(2, 0, 1, 0)
.consti loopParams2(2, 3, 1, 0)
.proc setcolor
nop
mov r0, black
for loopParams1
nop
add r0, foo0[lcnt], r0
nop
for loopParams2
nop
add r0, foo0[lcnt], r0
nop
.end
nop
.end
nop
.end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment