--- a/progs/fib.j Tue Nov 26 22:45:06 2013 +0000
+++ b/progs/fib.j Wed Nov 27 08:49:51 2013 +0000
@@ -19,11 +19,22 @@
.end method
+.method public static writes(Ljava/lang/String;)V
+ .limit stack 2
+ .limit locals 2
+ getstatic java/lang/System/out Ljava/io/PrintStream;
+ aload 0
+ invokevirtual java/io/PrintStream/println(Ljava/lang/String;)V
+ return
+.end method
+
+
.method public static main([Ljava/lang/String;)V
.limit locals 200
.limit stack 200
-ldc 19
+getstatic java/lang/System/in Ljava/io/InputStream;
+invokevirtual java/io/InputStream/read()I
istore 0
ldc 0
istore 1
@@ -51,6 +62,8 @@
Loop_end_1:
+ldc "Result"
+invokestatic fib/fib/writes(Ljava/lang/String;)V
iload 2
invokestatic fib/fib/write(I)V