push
This commit is contained in:
24
test_tool/champion/bee_gees.s
Normal file
24
test_tool/champion/bee_gees.s
Normal file
@@ -0,0 +1,24 @@
|
||||
.name "stayin' alive"
|
||||
.comment "Ha, Ha, Ha, stayiiiiin' aliiiiiiiiiive"
|
||||
|
||||
sti r1, %:live, %1 ;change live by the right value
|
||||
sti r1, %:live2, %1 ;change live by the right value
|
||||
ld %1, r3
|
||||
ld %33, r6
|
||||
#While (r2 < 10)
|
||||
forks:
|
||||
add r2, r3, r2 ;increment r2
|
||||
xor r2, %15, r4 ;if (r4) {carry = 0}
|
||||
live2:
|
||||
live %4
|
||||
zjmp %:endwhile ;if (carry)
|
||||
fork %:forks
|
||||
ld %0, r4 ;carry = 1
|
||||
zjmp %:forks
|
||||
#EndWhile
|
||||
endwhile:
|
||||
ld %0, r4 ;carry = 1
|
||||
|
||||
live:
|
||||
live %4
|
||||
zjmp %:live
|
Reference in New Issue
Block a user