author | Christian Urban <urbanc@in.tum.de> |
Wed, 28 Nov 2018 23:45:37 +0000 | |
changeset 612 | 7a12053567d4 |
parent 609 | e33545bb2eba |
child 617 | f7de0915fff2 |
permissions | -rw-r--r-- |
93
4794759139ea
better organised
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
1 |
|
4794759139ea
better organised
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
2 |
.class public fib.fib |
4794759139ea
better organised
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
3 |
.super java/lang/Object |
4794759139ea
better organised
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
4 |
|
4794759139ea
better organised
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
5 |
.method public <init>()V |
600 | 6 |
aload_0 |
7 |
invokenonvirtual java/lang/Object/<init>()V |
|
8 |
return |
|
93
4794759139ea
better organised
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
9 |
.end method |
4794759139ea
better organised
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
10 |
|
600 | 11 |
.method public static write(I)V |
12 |
.limit locals 1 |
|
13 |
.limit stack 2 |
|
14 |
getstatic java/lang/System/out Ljava/io/PrintStream; |
|
15 |
iload 0 |
|
612 | 16 |
i2c |
17 |
invokevirtual java/io/PrintStream/print(C)V |
|
600 | 18 |
return |
207
f824e1331fc6
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
93
diff
changeset
|
19 |
.end method |
f824e1331fc6
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
93
diff
changeset
|
20 |
|
93
4794759139ea
better organised
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
21 |
.method public static main([Ljava/lang/String;)V |
600 | 22 |
.limit locals 200 |
23 |
.limit stack 200 |
|
93
4794759139ea
better organised
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
24 |
|
609 | 25 |
ldc 10 |
600 | 26 |
istore 0 |
27 |
ldc 0 |
|
28 |
istore 1 |
|
29 |
ldc 1 |
|
30 |
istore 2 |
|
31 |
ldc 0 |
|
32 |
istore 3 |
|
93
4794759139ea
better organised
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
33 |
|
609 | 34 |
Loop_begin_0: |
93
4794759139ea
better organised
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
35 |
|
600 | 36 |
ldc 0 |
37 |
iload 0 |
|
609 | 38 |
if_icmpge Loop_end_1 |
600 | 39 |
iload 2 |
40 |
istore 3 |
|
41 |
iload 1 |
|
42 |
iload 2 |
|
43 |
iadd |
|
44 |
istore 2 |
|
45 |
iload 3 |
|
46 |
istore 1 |
|
47 |
iload 0 |
|
48 |
ldc 1 |
|
49 |
isub |
|
50 |
istore 0 |
|
609 | 51 |
goto Loop_begin_0 |
93
4794759139ea
better organised
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
52 |
|
609 | 53 |
Loop_end_1: |
93
4794759139ea
better organised
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
54 |
|
600 | 55 |
iload 1 |
56 |
invokestatic fib/fib/write(I)V |
|
93
4794759139ea
better organised
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
57 |
|
4794759139ea
better organised
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
58 |
|
600 | 59 |
return |
60 |
||
93
4794759139ea
better organised
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
61 |
.end method |