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

All Opcodes by Opcode Value

OpcodeMnemonicDescription
0nopDo nothing
1aconst_nullPush null
2iconst_m1Push int constant -1
3iconst_0Push int constant 0
4iconst_1Push int constant 1
5iconst_2Push int constant 2
6iconst_3Push int constant 3
7iconst_4Push int constant 4
8iconst_5Push int constant 5
9lconst_0Push long constant
10lconst_1Push long constant
11fconst_0Push float value 0.0
12fconst_1Push float value 1.0
13fconst_2Push float value 2.0
14dconst_0Push double value 0.0
15dconst_1Push double value 1.0
16bipushPush byte
17sipushPush short
18ldcPush item from constant pool
19ldc_wPush item from constant pool (wide index)
20ldc2_wPush long or double from constant pool (wide index)
21iloadLoad int from local variable
22lloadLoad long from local variable
23floadLoad float from local variable
24dloadLoad double from local variable
25aloadLoad reference from local variable
26iload_0Load int from local variable
27iload_1Load int from local variable
28iload_2Load int from local variable
29iload_3Load int from local variable
30lload_0Load long from local variable 0
31lload_1Load long from local variable 1
32lload_2Load long from local variable 2
33lload_3Load long from local variable 3
34fload_0Load float from local variable 0
35fload_1Load float from local variable 1
36fload_2Load float from local variable 2
37fload_3Load float from local variable 3
38dload_0Load double from local variable 0
39dload_1Load double from local variable 1
40dload_2Load double from local variable 2
41dload_3Load double from local variable 3
42aload_0Load reference from local variable 0
43aload_1Load reference from local variable 1
44aload_2Load reference from local variable 2
45aload_3Load reference from local variable 3
46ialoadLoad int from array
47laloadLoad long from array
48faloadLoad float from array
49daloadLoad double from array
50aaloadLoad reference from array
51baloadLoad byte or boolean from array
52caloadLoad char from array
53saloadLoad short from array
54istoreStore int into local variable
55lstoreStore long into local variable
56fstoreStore float into local variable
57dstoreStore double into local variable
58astoreStore reference into local variable
59istore_0Store int into local variable 0
60istore_1Store int into local variable 1
61istore_2Store int into local variable 2
62istore_3Store int into local variable 3
63lstore_0Store long into local variable 0
64lstore_1Store long into local variable 1
65lstore_2Store long into local variable 2
66lstore_3Store long into local variable 3
67fstore_0Store float into local variable 0
68fstore_1Store float into local variable 1
69fstore_2Store float into local variable 2
70fstore_3Store float into local variable 3
71dstore_0Store double into local variable 0
72dstore_1Store double into local variable 1
73dstore_2Store double into local variable 2
74dstore_3Store double into local variable 3
75astore_0Store reference into local variable 0
76astore_1Store reference into local variable 1
77astore_2Store reference into local variable 2
78astore_3Store reference into local variable 3
79iastoreStore into int array
80lastoreStore into long array
81fastoreStore into float array
82dastoreStore into double array
83aastoreStore into reference array
84bastoreStore into byte or boolean array
85castoreStore into char array
86sastoreStore into short array
87popPop the top operand stack value
88pop2Pop the top one or two operand stack values
89dupDuplicate the top operand stack value
90dup_x1Duplicate the top operand stack value and insert two values down
91dup_x2Duplicate the top operand stack value and insert two or three values down
92dup2Duplicate the top one or two operand stack values
93dup2_x1Duplicate the top one or two operand stack values and insert two or three values down
94dup2_x2Duplicate the top one or two operand stack values and insert two, three, or four values down
95swapSwap the top two operand stack values
96iaddAdd int
97laddAdd long
98faddAdd float
99daddAdd double
100isubSubtract int
101lsubSubtract long
102fsubSubtract float
103dsubSubtract double
104imulMultiply int
105lmulMultiply long
106fmulMultiply float
107dmulMultiply double
108idivDivide int
109ldivDivide long
110fdivDivide float
111ddivDivide double
112iremRemainder int
113lremRemainder long
114fremRemainder float
115dremRemainder double
116inegNegate int
117lnegNegate long
118fnegNegate float
119dnegNegate double
120ishlShift left int
121lshlShift left long
122ishrArithmetic shift right int
123lshrArithmetic shift right long
124iushrLogical shift right int
125lushrLogical shift right long
126iandBoolean AND int
127landBoolean AND long
128iorBoolean OR int
129lorBoolean OR long
130ixorBoolean XOR int
131lxorBoolean XOR long
132iincIncrement local variable by constant
133i2lConvert int to long
134i2fConvert int to float
135i2dConvert int to double
136l2iConvert long to int
137l2fConvert long to float
138l2dConvert long to double
139f2iConvert float to int
140f2lConvert float to long
141f2dConvert float to double
142d2iConvert double to int
143d2lConvert double to long
144d2fConvert double to float
145i2bConvert int to byte
146i2cConvert int to char
147i2sConvert int to short
148lcmpCompare long
149fcmplCompare float
150fcmpgCompare float
151dcmplCompare double
152dcmpgCompare double
153ifeqJump if int comparison with zero succeeds
154ifneJump if int comparison with zero succeeds
155ifltJump if int comparison with zero succeeds
156ifgeJump if int comparison with zero succeeds
157ifgtJump if int comparison with zero succeeds
158ifleJump if int comparison with zero succeeds
159if_icmpeqJump if int comparison succeeds
160if_icmpneJump if int comparison succeeds
161if_icmpltJump if int comparison succeeds
162if_icmpgeJump if int comparison succeeds
163if_icmpgtJump if int comparison succeeds
164if_icmpleJump if int comparison succeeds
165if_acmpeqJump if reference comparison succeeds
166if_acmpneJump if reference comparison succeeds
167gotoUnconditional jump
168jsrJump subroutine
169retReturn from subroutine
170tableswitchAccess jump table by index and jump
171lookupswitchAccess jump table by key match and jump
172ireturnReturn int from method
173lreturnReturn long from method
174freturnReturn float from method
175dreturnReturn double from method
176areturnReturn reference from method
177returnReturn void from method
178getstaticGet static field from class
179putstaticSet static field in class
180getfieldFetch field from object
181putfieldSet field in object
182invokevirtualInvoke instance method, dispatch based on class
183invokespecialDirectly invoke instance (initialization) method of the current class or its supertypes
184invokestaticInvoke static method
185invokeinterfaceInvoke interface method
186invokedynamicInvoke a dynamically-computed call site
187newCreate new object
188newarrayCreate new array
189anewarrayCreate new array of reference
190arraylengthGet length of array
191athrowThrow Throwable reference
192checkcastCheck whether reference is of given type
193instanceofDetermine if reference is of given type
194monitorenterEnter monitor for object
195monitorexitExit monitor for object
196wideExtend local variable index by additional bytes
197multianewarrayCreate new multidimensional array
198ifnullJump if reference is null
199ifnonnullJump if reference not null
200goto_wUnconditional jump (wide index)
201jsr_wJump subroutine (wide index)
202breakpointReserved for internal usage in debuggers
254impdep1Reserved for internal usage in JVM
255impdep2Reserved for internal usage in JVM
Data Source