--- a/progs/loops.j Tue Nov 26 22:45:06 2013 +0000
+++ b/progs/loops.j Wed Nov 27 08:49:51 2013 +0000
@@ -18,6 +18,15 @@
return
.end method
+.method public static write(S)V
+ .limit locals 5
+ .limit stack 5
+ iload 0
+ getstatic java/lang/System/out Ljava/io/PrintStream;
+ swap
+ invokevirtual java/io/PrintStream/println(S)V
+ return
+.end method
.method public static main([Ljava/lang/String;)V
.limit locals 200
@@ -77,12 +86,6 @@
Loop_end_1:
-iload 1
-invokestatic loops/loops/write(I)V
-iload 2
-invokestatic loops/loops/write(I)V
-iload 3
-invokestatic loops/loops/write(I)V
return