turn test files in one function definition

This commit is contained in:
Quentin Carbonneaux 2015-09-07 22:11:43 -04:00
parent 87ab8941ed
commit a1b3e82dc9
16 changed files with 114 additions and 82 deletions

View file

@ -1,14 +1,16 @@
# simple looping program
# sums all integers from 100 to 0
@start
function $test {
@start
@loop
@loop
%s =w phi @start 100, @loop %s1
%n =w phi @start 0, @loop %n1
%n1 =w sub %n, 1
%s1 =w add %s, %n
jnz %n1, @loop, @end
@end
@end
ret
}