progs/while/test-small.j
author Christian Urban <christian.urban@kcl.ac.uk>
Wed, 18 Nov 2020 12:18:33 +0000
changeset 808 ba3edaf7dc49
child 809 2b9956d29038
permissions -rw-r--r--
updated
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
808
ba3edaf7dc49 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
     1
.class public test.test
ba3edaf7dc49 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
     2
.super java/lang/Object
ba3edaf7dc49 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
     3
ba3edaf7dc49 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
     4
.method public static write(I)V 
ba3edaf7dc49 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
     5
    .limit locals 1 
ba3edaf7dc49 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
     6
    .limit stack 2
ba3edaf7dc49 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
     7
    getstatic java/lang/System/out Ljava/io/PrintStream; 
ba3edaf7dc49 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
     8
    iload 0 
ba3edaf7dc49 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
     9
    invokevirtual java/io/PrintStream/println(I)V 
ba3edaf7dc49 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    10
    return 
ba3edaf7dc49 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    11
.end method
ba3edaf7dc49 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    12
ba3edaf7dc49 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    13
.method public static main([Ljava/lang/String;)V
ba3edaf7dc49 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    14
   .limit locals 200
ba3edaf7dc49 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    15
   .limit stack 200
ba3edaf7dc49 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    16
ba3edaf7dc49 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    17
   bipush 8
ba3edaf7dc49 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    18
   invokestatic test/test/write(I)V 
ba3edaf7dc49 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    19
   return
ba3edaf7dc49 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    20
.end method