Created
November 28, 2016 17:59
-
-
Save mishadoff/7cc8220fc012978c59d8bd1bda2f2f9e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class com.mishadoff.RomanTheStack { | |
public com.mishadoff.RomanTheStack(); | |
Code: | |
0: aload_0 | |
1: invokespecial #1 // Method java/lang/Object."<init>":()V | |
4: return | |
public static void main(java.lang.String[]); | |
Code: | |
0: ldc #2 // float 14.88f | |
2: fstore_1 | |
3: fload_1 | |
4: invokestatic #3 // Method start:(F)Ljava/lang/String; | |
7: pop | |
8: return | |
static java.lang.String start(float); | |
Code: | |
0: ldc #2 // float 14.88f | |
2: fstore_1 | |
3: ldc #4 // String Roma thinks java has two stacks | |
5: astore_2 | |
6: fload_0 | |
7: invokestatic #5 // Method java/lang/Math.round:(F)I | |
10: istore_3 | |
11: iload_3 | |
12: newarray int | |
14: astore 4 | |
16: aload 4 | |
18: iconst_1 | |
19: iconst_1 | |
20: iastore | |
21: aload 4 | |
23: iconst_2 | |
24: iconst_2 | |
25: iastore | |
26: aload 4 | |
28: invokestatic #6 // Method copy:([I)Ljava/lang/String; | |
31: pop | |
32: aload_2 | |
33: areturn | |
static java.lang.String copy(int[]); | |
Code: | |
0: aload_0 | |
1: iconst_0 | |
2: aload_0 | |
3: iconst_0 | |
4: aload_0 | |
5: arraylength | |
6: invokestatic #7 // Method java/lang/System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V | |
9: ldc #8 // String done | |
11: areturn | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment