progs/test-small.j
author Christian Urban <christian.urban@kcl.ac.uk>
Fri, 24 Sep 2021 23:56:31 +0100
changeset 839 7af70f9b30ab
parent 711 6f3f3dd01786
permissions -rw-r--r--
updated
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
375
bf36664a3196 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     1
.class public test.test
bf36664a3196 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     2
.super java/lang/Object
bf36664a3196 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     3
bf36664a3196 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     4
.method public static write(I)V 
bf36664a3196 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     5
    .limit locals 1 
bf36664a3196 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     6
    .limit stack 2
bf36664a3196 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     7
    getstatic java/lang/System/out Ljava/io/PrintStream; 
bf36664a3196 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     8
    iload 0 
bf36664a3196 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     9
    invokevirtual java/io/PrintStream/println(I)V 
bf36664a3196 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    10
    return 
bf36664a3196 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    11
.end method
bf36664a3196 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    12
bf36664a3196 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    13
.method public static main([Ljava/lang/String;)V
bf36664a3196 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    14
   .limit locals 200
bf36664a3196 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    15
   .limit stack 200
708
4980f421b3b0 updated
Christian Urban <urbanc@in.tum.de>
parents: 375
diff changeset
    16
$\mbox{}\hfill\tikz[remember picture] \node[] (LA) {};$  ldc 1 
375
bf36664a3196 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    17
   ldc 2
708
4980f421b3b0 updated
Christian Urban <urbanc@in.tum.de>
parents: 375
diff changeset
    18
   iadd        
4980f421b3b0 updated
Christian Urban <urbanc@in.tum.de>
parents: 375
diff changeset
    19
$\tikz[remember picture] \node[] (LB) {};$  istore 0 
4980f421b3b0 updated
Christian Urban <urbanc@in.tum.de>
parents: 375
diff changeset
    20
$\tikz[remember picture] \node[] (LC) {};$  iload 0     
4980f421b3b0 updated
Christian Urban <urbanc@in.tum.de>
parents: 375
diff changeset
    21
$\tikz[remember picture] \node[] (LD) {};$  invokestatic test/test/write(I)V 
375
bf36664a3196 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    22
   return
710
183663740fb7 updated
Christian Urban <urbanc@in.tum.de>
parents: 708
diff changeset
    23
.end method