808
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
1 |
.class public test.test
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
2 |
.super java/lang/Object
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
3 |
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
4 |
.method public static write(I)V
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
5 |
.limit locals 1
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
6 |
.limit stack 2
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
7 |
getstatic java/lang/System/out Ljava/io/PrintStream;
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
8 |
iload 0
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
9 |
invokevirtual java/io/PrintStream/println(I)V
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
10 |
return
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
11 |
.end method
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
12 |
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
13 |
.method public static main([Ljava/lang/String;)V
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
14 |
.limit locals 200
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
15 |
.limit stack 200
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
16 |
|
809
|
17 |
; 1 + ((2 * 3) + (4 - 3))
|
|
18 |
ldc 1
|
|
19 |
ldc 2
|
|
20 |
ldc 3
|
|
21 |
imul
|
|
22 |
ldc 4
|
|
23 |
ldc 3
|
|
24 |
isub
|
|
25 |
iadd
|
|
26 |
iadd
|
808
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
27 |
invokestatic test/test/write(I)V
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
28 |
return
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
29 |
.end method |