author | Christian Urban <urbanc@in.tum.de> |
Sun, 27 Oct 2019 13:45:54 +0000 | |
changeset 675 | d665e7dd66d7 |
parent 624 | 8d0af38389bc |
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 |
|
675 | 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 |
|
675 | 25 |
ldc 10 |
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 |
|
624 | 34 |
Loop_begin_0: |
675 | 35 |
|
36 |
ldc 0 |
|
37 |
iload 0 |
|
38 |
if_icmpge Loop_end_1 |
|
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 |
|
51 |
goto Loop_begin_0 |
|
52 |
||
624 | 53 |
Loop_end_1: |
93
4794759139ea
better organised
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
54 |
|
675 | 55 |
iload 1 |
56 |
invokestatic fib/fib/write(I)V |
|
57 |
||
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 |