Skip Headers
Java Card 3 Platform Virtual Machine Specification, Classic Edition
Version 3.0.4
E25256-01
  Go To Table Of Contents
Contents
Go To Index
Index

Previous
Previous
 
Next
Next
 

8 Tables of Instructions

The following pages contain lists of the virtual machine instructions recognized by the Java Card platform, organized by opcode value (Table 8-1) and by opcode mnemonic (Table 8-2).

8.1 Instructions by Opcode Value

The following table shows the opcode values for the instructions recognized by the Java Card 3 Platform.

Table 8-1 Instructions by Opcode Value 

dec hex mnemonic
0
00
nop
1
01
aconst_null
2
02
sconst_m1
3
03
sconst_0
4
04
sconst_1
5
05
sconst_2
6
06
sconst_3
7
07
sconst_4
8
08
sconst_5
9
09
iconst_m1
10
0A
iconst_0
11
0B
iconst_1
12
0C
iconst_2
13
0D
iconst_3
14
0E
iconst_4
15
0F
iconst_5
16
10
bspush
17
11
sspush
18
12
bipush
19
13
sipush
20
14
iipush
21
15
aload
22
16
sload
23
17
iload
24
18
aload_0
25
19
aload_1
26
1A
aload_2
27
1B
aload_3
28
1C
sload_0
29
1D
sload_1
30
1E
sload_2
31
1F
sload_3
32
20
iload_0
33
21
iload_1
34
22
iload_2
35
23
iload_3
36
24
aaload
37
25
baload
38
26
saload
39
27
iaload
40
28
astore
41
29
sstore
42
2A
istore
43
2B
astore_0
44
2C
astore_1
45
2D
astore_2
46
2E
astore_3
47
2F
sstore_0
48
30
sstore_1
49
31
sstore_2
50
32
sstore_3
51
33
istore_0
52
34
istore_1
53
35
istore_2
54
36
istore_3
55
37
aastore
56
38
bastore
57
39
sastore
58
3A
iastore
59
3B
pop
60
3C
pop2
61
3D
dup
62
3E
dup2
63
3F
dup_x
64
40
swap_x
65
41
sadd
66
42
iadd
67
43
ssub
68
44
isub
69
45
smul
70
46
imul
71
47
sdiv
72
48
idiv
73
49
srem
74
4A
irem
75
4B
sneg
76
4C
ineg
77
4D
sshl
78
4E
ishl
79
4F
sshr
80
50
ishr
81
51
sushr
82
52
iushr
83
53
sand
84
54
iand
85
55
sor
86
56
ior
87
57
sxor
88
58
ixor
89
59
sinc
90
5A
iinc
91
5B
s2b
92
5C
s2i
93
5D
i2b
94
5E
i2s
95
5F
icmp
96
60
ifeq
97
61
ifne
98
62
iflt
99
63
ifge
100
64
ifgt
101
65
ifle
102
66
ifnull
103
67
ifnonnull
104
68
if_acmpeq
105
69
if_acmpne
106
6A
if_scmpeq
107
6B
if_scmpne
108
6C
if_scmplt
109
6D
if_scmpge
110
6E
if_scmpgt
111
6F
if_scmple
112
70
goto
113
71
jsr
114
72
ret
115
73
stableswitch
116
74
itableswitch
117
75
slookupswitch
118
76
ilookupswitch
119
77
areturn
120
78
sreturn
121
79
ireturn
122
7A
return
123
7B
getstatic_a
124
7C
getstatic_b
125
7D
getstatic_s
126
7E
getstatic_i
127
7F
putstatic_a
128
80
putstatic_b
129
81
putstatic_s
130
82
putstatic_i
131
83
getfield_a
132
84
getfield_b
133
85
getfield_s
134
86
getfield_i
135
87
putfield_a
136
88
putfield_b
137
89
putfield_s
138
8A
putfield_i
139
8B
invokevirtual
140
8C
invokespecial
141
8D
invokestatic
142
8E
invokeinterface
143
8F
new
144
90
newarray
145
91
anewarray
146
92
arraylength
147
93
athrow
148
94
checkcast
149
95
instanceof
150
96
sinc_w
151
97
iinc_w
152
98
ifeq_w
153
99
ifne_w
154
9A
iflt_w
155
9B
ifge_w
156
9C
ifgt_w
157
9D
ifle_w
158
9E
ifnull_w
159
9F
ifnonnull_w
160
A0
if_acmpeq_w
161
A1
if_acmpne_w
162
A2
if_scmpeq_w
163
A3
if_scmpne_w
164
A4
if_scmplt_w
165
A5
if_scmpge_w
166
A6
if_scmpgt_w
167
A7
if_scmple_w
168
A8
goto_w
169
A9
getfield_a_w
170
AA
getfield_b_w
171
AB
getfield_s_w
172
AC
getfield_i_w
173
AD
getfield_a_this
174
AE
getfield_b_this
175
AF
getfield_s_this
176
B0
getfield_i_this
177
B1
putfield_a_w
178
B2
putfield_b_w
179
B3
putfield_s_w
180
B4
putfield_i_w
181
B5
putfield_a_this
182
B6
putfield_b_this
183
B7
putfield_s_this
184
B8
putfield_i_this
254
FE
impdep1
255
FF
impdep2

8.2 Instructions by Opcode Mnemonic

The following table shows the opcode mnemonics for the instructions recognized by the Java Card 3 Platform.

Table 8-2 Instructions by Opcode Mnemonic 

mnemonic dec hex
aaload
36
24
aastore
55
37
aconst_null
1
01
aload
21
15
aload_0
24
18
aload_1
25
19
aload_2
26
1A
aload_3
27
1B
anewarray
145
91
areturn
119
77
arraylength
146
92
astore
40
28
astore_0
43
2B
astore_1
44
2C
astore_2
45
2D
astore_3
46
2E
athrow
147
93
baload
37
25
bastore
56
38
bipush
18
12
bspush
16
10
checkcast
148
94
dup
61
3D
dup_x
63
3F
dup2
62
3E
getfield_a
131
83
getfield_a_this
173
AD
getfield_a_w
169
A9
getfield_b
132
84
getfield_b_this
174
AE
getfield_b_w
170
AA
getfield_i
134
86
getfield_i_this
176
B0
getfield_i_w
172
AC
getfield_s
133
85
getfield_s_this
175
AF
getfield_s_w
171
AB
getstatic_a
123
7B
getstatic_b
124
7C
getstatic_i
126
7E
getstatic_s
125
7D
goto
112
70
goto_w
168
A8
i2b
93
5D
i2s
94
5E
iadd
66
42
iaload
39
27
iand
84
54
iastore
58
3A
icmp
95
5F
iconst_0
10
0A
iconst_1
11
0B
iconst_2
12
0C
iconst_3
13
0D
iconst_4
14
0E
iconst_5
15
0F
iconst_m1
9
09
idiv
72
48
if_acmpeq
104
68
if_acmpeq_w
160
A0
if_acmpne
105
69
if_acmpne_w
161
A1
if_scmpeq
106
6A
if_scmpeq_w
162
A2
if_scmpge
109
6D
if_scmpge_w
165
A5
if_scmpgt
110
6E
if_scmpgt_w
166
A6
if_scmple
111
6F
if_scmple_w
167
A7
if_scmplt
108
6C
if_scmplt_w
164
A4
if_scmpne
107
6B
if_scmpne_w
163
A3
ifeq
96
60
ifeq_w
152
98
ifge
99
63
ifge_w
155
9B
ifgt
100
64
ifgt_w
156
9C
ifle
101
65
ifle_w
157
9D
iflt
98
62
iflt_w
154
9A
ifne
97
61
ifne_w
153
99
ifnonnull
103
67
ifnonnull_w
159
9F
ifnull
102
66
ifnull_w
158
9E
iinc
90
5A
iinc_w
151
97
iipush
20
14
iload
23
17
iload_0
32
20
iload_1
33
21
iload_2
34
22
iload_3
35
23
ilookupswitch
118
76
imul
70
46
ineg
76
4C
instanceof
149
95
invokeinterface
142
8E
invokespecial
140
8C
invokestatic
141
8D
invokevirtual
139
8B
ior
86
56
irem
74
4A
ireturn
121
79
ishl
78
4E
ishr
80
50
istore
42
2A
istore_0
51
33
istore_1
52
34
istore_2
53
35
istore_3
54
36
isub
68
44
itableswitch
116
74
iushr
82
52
ixor
88
58
jsr
113
71
new
143
8F
newarray
144
90
nop
0
00
pop
59
3B
pop2
60
3C
putfield_a
135
87
putfield_a_this
181
B5
putfield_a_w
177
B1
putfield_b
136
88
putfield_b_this
182
B6
putfield_b_w
178
B2
putfield_i
138
8A
putfield_i_this
184
B8
putfield_i_w
180
B4
putfield_s
137
89
putfield_s_this
183
B7
putfield_s_w
179
B3
putstatic_a
127
7F
putstatic_b
128
80
putstatic_i
130
82
putstatic_s
129
81
ret
114
72
return
122
7A
s2b
91
5B
s2i
92
5C
sadd
65
41
saload
38
26
sand
83
53
sastore
57
39
sconst_0
3
03
sconst_1
4
04
sconst_2
5
05
sconst_3
6
06
sconst_4
7
07
sconst_5
8
08
sconst_m1
2
02
sdiv
71
47
sinc
89
59
sinc_w
150
96
sipush
19
13
sload
22
16
sload_0
28
1C
sload_1
29
1D
sload_2
30
1E
sload_3
31
1F
slookupswitch
117
75
smul
69
45
sneg
75
4B
sor
85
55
srem
73
49
sreturn
120
78
sshl
77
4D
sshr
79
4F
sspush
17
11
sstore
41
29
sstore_0
47
2F
sstore_1
48
30
sstore_2
49
31
sstore_3
50
32
ssub
67
43
stableswitch
115
73
sushr
81
51
swap_x
64
40
sxor
87
57