progs/test-small.j
changeset 375 bf36664a3196
child 708 4980f421b3b0
equal deleted inserted replaced
374:0e25fb72d339 375:bf36664a3196
       
     1 .class public test.test
       
     2 .super java/lang/Object
       
     3 
       
     4 .method public <init>()V
       
     5    aload_0
       
     6    invokenonvirtual java/lang/Object/<init>()V
       
     7    return
       
     8 .end method
       
     9 
       
    10 .method public static write(I)V 
       
    11     .limit locals 1 
       
    12     .limit stack 2
       
    13     getstatic java/lang/System/out Ljava/io/PrintStream; 
       
    14     iload 0 
       
    15     invokevirtual java/io/PrintStream/println(I)V 
       
    16     return 
       
    17 .end method
       
    18 
       
    19 .method public static main([Ljava/lang/String;)V
       
    20    .limit locals 200
       
    21    .limit stack 200
       
    22    ldc 1
       
    23    ldc 2
       
    24    iadd
       
    25    istore 0
       
    26    iload 0
       
    27    invokestatic test/test/write(I)V
       
    28    return
       
    29 .end method