coursework/cw04.tex
changeset 373 b018234c9126
parent 358 b3129cff41e9
child 390 a1fe591a3df3
--- a/coursework/cw04.tex	Tue Nov 17 01:58:50 2015 +0000
+++ b/coursework/cw04.tex	Tue Nov 17 04:02:08 2015 +0000
@@ -238,11 +238,10 @@
 \begin{minipage}{12cm}
 \begin{lstlisting}[language=JVMIS, numbers=none]
 .method public static write(I)V 
-    .limit locals 5 
-    .limit stack 5 
-    iload 0 
+    .limit locals 1 
+    .limit stack 2  
     getstatic java/lang/System/out Ljava/io/PrintStream; 
-    swap 
+    iload 0
     invokevirtual java/io/PrintStream/println(I)V 
     return 
 .end method