1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
.class public LExample;
.super Ljava/lang/Object;
.method private static handleData(I)I
.locals 3
# Data handling: const /16 v0, 0x1234
const/16 v0, 0x1234
# Data handling: sget-object v1, Ljava/lang/System;->out:Ljava/io/PrintStream;
sget-object v1, Ljava/lang/System;->out:Ljava/io/PrintStream;
# Data handling: const-string v2, "Data handled value: "
const-string v2, "Data handled value: "
# Data handling: invoke-virtual {v1, v2, v0}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V
invoke-virtual {v1, v2, v0}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V
return-void
.end method
.method private static arithmetic(I)V
.locals 3
# Arithmetic and logic operations: const /16 v0, 0x5678
const/16 v0, 0x5678
# Arithmetic and logic operations: add-int/lit16 v1, v0, 0x1234
add-int/lit16 v1, v0, 0x1234
# Arithmetic and logic operations: const-string v2, "Result of addition: "
const-string v2, "Result of addition: "
# Arithmetic and logic operations: invoke-virtual {v1, v2}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V
invoke-virtual {v1, v2}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V
return-void
.end method
.method private static controlFlow(I)V
.locals 3
# Control flow operations: const /16 v0, 0x9ABC
const/16 v0, 0x9ABC
# Control flow operations: if-nez v0, :cond_true
if-nez v0, :cond_true
goto :cond_false
:cond_true
const-string v1, "Condition is true"
invoke-virtual {v1}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V
goto :end
:cond_false
const-string v1, "Condition is false"
invoke-virtual {v1}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V
:end
return-void
.end method
|