GitHub
The Java Version Almanac
javaalmanac.io
Feedback on this page?

All Opcodes by Opcode Value

Opcode Mnemonic Description
0 nop Do nothing
1 aconst_null Push null
2 iconst_m1 Push int constant -1
3 iconst_0 Push int constant 0
4 iconst_1 Push int constant 1
5 iconst_2 Push int constant 2
6 iconst_3 Push int constant 3
7 iconst_4 Push int constant 4
8 iconst_5 Push int constant 5
9 lconst_0 Push long constant
10 lconst_1 Push long constant
11 fconst_0 Push float value 0.0
12 fconst_1 Push float value 1.0
13 fconst_2 Push float value 2.0
14 dconst_0 Push double value 0.0
15 dconst_1 Push double value 1.0
16 bipush Push byte
17 sipush Push short
18 ldc Push item from constant pool
19 ldc_w Push item from constant pool (wide index)
20 ldc2_w Push long or double from constant pool (wide index)
21 iload Load int from local variable
22 lload Load long from local variable
23 fload Load float from local variable
24 dload Load double from local variable
25 aload Load reference from local variable
26 iload_0 Load int from local variable
27 iload_1 Load int from local variable
28 iload_2 Load int from local variable
29 iload_3 Load int from local variable
30 lload_0 Load long from local variable 0
31 lload_1 Load long from local variable 1
32 lload_2 Load long from local variable 2
33 lload_3 Load long from local variable 3
34 fload_0 Load float from local variable 0
35 fload_1 Load float from local variable 1
36 fload_2 Load float from local variable 2
37 fload_3 Load float from local variable 3
38 dload_0 Load double from local variable 0
39 dload_1 Load double from local variable 1
40 dload_2 Load double from local variable 2
41 dload_3 Load double from local variable 3
42 aload_0 Load reference from local variable 0
43 aload_1 Load reference from local variable 1
44 aload_2 Load reference from local variable 2
45 aload_3 Load reference from local variable 3
46 iaload Load int from array
47 laload Load long from array
48 faload Load float from array
49 daload Load double from array
50 aaload Load reference from array
51 baload Load byte or boolean from array
52 caload Load char from array
53 saload Load short from array
54 istore Store int into local variable
55 lstore Store long into local variable
56 fstore Store float into local variable
57 dstore Store double into local variable
58 astore Store reference into local variable
59 istore_0 Store int into local variable 0
60 istore_1 Store int into local variable 1
61 istore_2 Store int into local variable 2
62 istore_3 Store int into local variable 3
63 lstore_0 Store long into local variable 0
64 lstore_1 Store long into local variable 1
65 lstore_2 Store long into local variable 2
66 lstore_3 Store long into local variable 3
67 fstore_0 Store float into local variable 0
68 fstore_1 Store float into local variable 1
69 fstore_2 Store float into local variable 2
70 fstore_3 Store float into local variable 3
71 dstore_0 Store double into local variable 0
72 dstore_1 Store double into local variable 1
73 dstore_2 Store double into local variable 2
74 dstore_3 Store double into local variable 3
75 astore_0 Store reference into local variable 0
76 astore_1 Store reference into local variable 1
77 astore_2 Store reference into local variable 2
78 astore_3 Store reference into local variable 3
79 iastore Store into int array
80 lastore Store into long array
81 fastore Store into float array
82 dastore Store into double array
83 aastore Store into reference array
84 bastore Store into byte or boolean array
85 castore Store into char array
86 sastore Store into short array
87 pop Pop the top operand stack value
88 pop2 Pop the top one or two operand stack values
89 dup Duplicate the top operand stack value
90 dup_x1 Duplicate the top operand stack value and insert two values down
91 dup_x2 Duplicate the top operand stack value and insert two or three values down
92 dup2 Duplicate the top one or two operand stack values
93 dup2_x1 Duplicate the top one or two operand stack values and insert two or three values down
94 dup2_x2 Duplicate the top one or two operand stack values and insert two, three, or four values down
95 swap Swap the top two operand stack values
96 iadd Add int
97 ladd Add long
98 fadd Add float
99 dadd Add double
100 isub Subtract int
101 lsub Subtract long
102 fsub Subtract float
103 dsub Subtract double
104 imul Multiply int
105 lmul Multiply long
106 fmul Multiply float
107 dmul Multiply double
108 idiv Divide int
109 ldiv Divide long
110 fdiv Divide float
111 ddiv Divide double
112 irem Remainder int
113 lrem Remainder long
114 frem Remainder float
115 drem Remainder double
116 ineg Negate int
117 lneg Negate long
118 fneg Negate float
119 dneg Negate double
120 ishl Shift left int
121 lshl Shift left long
122 ishr Arithmetic shift right int
123 lshr Arithmetic shift right long
124 iushr Logical shift right int
125 lushr Logical shift right long
126 iand Boolean AND int
127 land Boolean AND long
128 ior Boolean OR int
129 lor Boolean OR long
130 ixor Boolean XOR int
131 lxor Boolean XOR long
132 iinc Increment local variable by constant
133 i2l Convert int to long
134 i2f Convert int to float
135 i2d Convert int to double
136 l2i Convert long to int
137 l2f Convert long to float
138 l2d Convert long to double
139 f2i Convert float to int
140 f2l Convert float to long
141 f2d Convert float to double
142 d2i Convert double to int
143 d2l Convert double to long
144 d2f Convert double to float
145 i2b Convert int to byte
146 i2c Convert int to char
147 i2s Convert int to short
148 lcmp Compare long
149 fcmpl Compare float
150 fcmpg Compare float
151 dcmpl Compare double
152 dcmpg Compare double
153 ifeq Jump if int comparison with zero succeeds
154 ifne Jump if int comparison with zero succeeds
155 iflt Jump if int comparison with zero succeeds
156 ifge Jump if int comparison with zero succeeds
157 ifgt Jump if int comparison with zero succeeds
158 ifle Jump if int comparison with zero succeeds
159 if_icmpeq Jump if int comparison succeeds
160 if_icmpne Jump if int comparison succeeds
161 if_icmplt Jump if int comparison succeeds
162 if_icmpge Jump if int comparison succeeds
163 if_icmpgt Jump if int comparison succeeds
164 if_icmple Jump if int comparison succeeds
165 if_acmpeq Jump if reference comparison succeeds
166 if_acmpne Jump if reference comparison succeeds
167 goto Unconditional jump
168 jsr Jump subroutine
169 ret Return from subroutine
170 tableswitch Access jump table by index and jump
171 lookupswitch Access jump table by key match and jump
172 ireturn Return int from method
173 lreturn Return long from method
174 freturn Return float from method
175 dreturn Return double from method
176 areturn Return reference from method
177 return Return void from method
178 getstatic Get static field from class
179 putstatic Set static field in class
180 getfield Fetch field from object
181 putfield Set field in object
182 invokevirtual Invoke instance method, dispatch based on class
183 invokespecial Directly invoke instance (initialization) method of the current class or its supertypes
184 invokestatic Invoke static method
185 invokeinterface Invoke interface method
186 invokedynamic Invoke a dynamically-computed call site
187 new Create new object
188 newarray Create new array
189 anewarray Create new array of reference
190 arraylength Get length of array
191 athrow Throw Throwable reference
192 checkcast Check whether reference is of given type
193 instanceof Determine if reference is of given type
194 monitorenter Enter monitor for object
195 monitorexit Exit monitor for object
196 wide Extend local variable index by additional bytes
197 multianewarray Create new multidimensional array
198 ifnull Jump if reference is null
199 ifnonnull Jump if reference not null
200 goto_w Unconditional jump (wide index)
201 jsr_w Jump subroutine (wide index)
202 breakpoint Reserved for internal usage in debuggers
254 impdep1 Reserved for internal usage in JVM
255 impdep2 Reserved for internal usage in JVM
Data Source