progs/loops.j
changeset 207 f824e1331fc6
parent 93 4794759139ea
child 710 183663740fb7
equal deleted inserted replaced
206:85b961f1eee9 207:f824e1331fc6
    16     swap 
    16     swap 
    17     invokevirtual java/io/PrintStream/println(I)V 
    17     invokevirtual java/io/PrintStream/println(I)V 
    18     return 
    18     return 
    19 .end method
    19 .end method
    20 
    20 
       
    21 .method public static write(S)V 
       
    22     .limit locals 5 
       
    23     .limit stack 5 
       
    24     iload 0 
       
    25     getstatic java/lang/System/out Ljava/io/PrintStream; 
       
    26     swap 
       
    27     invokevirtual java/io/PrintStream/println(S)V 
       
    28     return 
       
    29 .end method
    21 
    30 
    22 .method public static main([Ljava/lang/String;)V
    31 .method public static main([Ljava/lang/String;)V
    23    .limit locals 200
    32    .limit locals 200
    24    .limit stack 200
    33    .limit stack 200
    25 
    34 
    75 istore 1
    84 istore 1
    76 goto Loop_begin_0
    85 goto Loop_begin_0
    77 
    86 
    78 Loop_end_1:
    87 Loop_end_1:
    79 
    88 
    80 iload 1
       
    81 invokestatic loops/loops/write(I)V
       
    82 iload 2
       
    83 invokestatic loops/loops/write(I)V
       
    84 iload 3
       
    85 invokestatic loops/loops/write(I)V
       
    86 
    89 
    87 
    90 
    88    return
    91    return
    89 
    92 
    90 .end method
    93 .end method