1 // -*- Mode: Java; indent-tabs-mode: t; tab-width: 4 -*-
2 // ---------------------------------------------------------------------------
4 // Copyright (C) Stephanie Gawroriski <xer@multiphasicapps.net>
5 // ---------------------------------------------------------------------------
6 // SquirrelJME is under the GNU General Public License v3+, or later.
7 // See license.mkd for licensing and copyright information.
8 // ---------------------------------------------------------------------------
10 package net
.multiphasicapps
.classfile
;
13 * This contains instruction mnemonics.
17 public final class InstructionMnemonics
24 private InstructionMnemonics()
29 * Returns the instruction mnemonic.
31 * @param __op The operation to get.
32 * @return The mnemonic for the instruction.
35 public static String
toString(int __op
)
39 case InstructionIndex
.NOP
: return "NOP";
40 case InstructionIndex
.ACONST_NULL
: return "ACONST_NULL";
41 case InstructionIndex
.ICONST_M1
: return "ICONST_M1";
42 case InstructionIndex
.ICONST_0
: return "ICONST_0";
43 case InstructionIndex
.ICONST_1
: return "ICONST_1";
44 case InstructionIndex
.ICONST_2
: return "ICONST_2";
45 case InstructionIndex
.ICONST_3
: return "ICONST_3";
46 case InstructionIndex
.ICONST_4
: return "ICONST_4";
47 case InstructionIndex
.ICONST_5
: return "ICONST_5";
48 case InstructionIndex
.LCONST_0
: return "LCONST_0";
49 case InstructionIndex
.LCONST_1
: return "LCONST_1";
50 case InstructionIndex
.FCONST_0
: return "FCONST_0";
51 case InstructionIndex
.FCONST_1
: return "FCONST_1";
52 case InstructionIndex
.FCONST_2
: return "FCONST_2";
53 case InstructionIndex
.DCONST_0
: return "DCONST_0";
54 case InstructionIndex
.DCONST_1
: return "DCONST_1";
55 case InstructionIndex
.BIPUSH
: return "BIPUSH";
56 case InstructionIndex
.SIPUSH
: return "SIPUSH";
57 case InstructionIndex
.LDC
: return "LDC";
58 case InstructionIndex
.LDC_W
: return "LDC_W";
59 case InstructionIndex
.LDC2_W
: return "LDC2_W";
60 case InstructionIndex
.ILOAD
: return "ILOAD";
61 case InstructionIndex
.LLOAD
: return "LLOAD";
62 case InstructionIndex
.FLOAD
: return "FLOAD";
63 case InstructionIndex
.DLOAD
: return "DLOAD";
64 case InstructionIndex
.ALOAD
: return "ALOAD";
65 case InstructionIndex
.ILOAD_0
: return "ILOAD_0";
66 case InstructionIndex
.ILOAD_1
: return "ILOAD_1";
67 case InstructionIndex
.ILOAD_2
: return "ILOAD_2";
68 case InstructionIndex
.ILOAD_3
: return "ILOAD_3";
69 case InstructionIndex
.LLOAD_0
: return "LLOAD_0";
70 case InstructionIndex
.LLOAD_1
: return "LLOAD_1";
71 case InstructionIndex
.LLOAD_2
: return "LLOAD_2";
72 case InstructionIndex
.LLOAD_3
: return "LLOAD_3";
73 case InstructionIndex
.FLOAD_0
: return "FLOAD_0";
74 case InstructionIndex
.FLOAD_1
: return "FLOAD_1";
75 case InstructionIndex
.FLOAD_2
: return "FLOAD_2";
76 case InstructionIndex
.FLOAD_3
: return "FLOAD_3";
77 case InstructionIndex
.DLOAD_0
: return "DLOAD_0";
78 case InstructionIndex
.DLOAD_1
: return "DLOAD_1";
79 case InstructionIndex
.DLOAD_2
: return "DLOAD_2";
80 case InstructionIndex
.DLOAD_3
: return "DLOAD_3";
81 case InstructionIndex
.ALOAD_0
: return "ALOAD_0";
82 case InstructionIndex
.ALOAD_1
: return "ALOAD_1";
83 case InstructionIndex
.ALOAD_2
: return "ALOAD_2";
84 case InstructionIndex
.ALOAD_3
: return "ALOAD_3";
85 case InstructionIndex
.IALOAD
: return "IALOAD";
86 case InstructionIndex
.LALOAD
: return "LALOAD";
87 case InstructionIndex
.FALOAD
: return "FALOAD";
88 case InstructionIndex
.DALOAD
: return "DALOAD";
89 case InstructionIndex
.AALOAD
: return "AALOAD";
90 case InstructionIndex
.BALOAD
: return "BALOAD";
91 case InstructionIndex
.CALOAD
: return "CALOAD";
92 case InstructionIndex
.SALOAD
: return "SALOAD";
93 case InstructionIndex
.ISTORE
: return "ISTORE";
94 case InstructionIndex
.LSTORE
: return "LSTORE";
95 case InstructionIndex
.FSTORE
: return "FSTORE";
96 case InstructionIndex
.DSTORE
: return "DSTORE";
97 case InstructionIndex
.ASTORE
: return "ASTORE";
98 case InstructionIndex
.ISTORE_0
: return "ISTORE_0";
99 case InstructionIndex
.ISTORE_1
: return "ISTORE_1";
100 case InstructionIndex
.ISTORE_2
: return "ISTORE_2";
101 case InstructionIndex
.ISTORE_3
: return "ISTORE_3";
102 case InstructionIndex
.LSTORE_0
: return "LSTORE_0";
103 case InstructionIndex
.LSTORE_1
: return "LSTORE_1";
104 case InstructionIndex
.LSTORE_2
: return "LSTORE_2";
105 case InstructionIndex
.LSTORE_3
: return "LSTORE_3";
106 case InstructionIndex
.FSTORE_0
: return "FSTORE_0";
107 case InstructionIndex
.FSTORE_1
: return "FSTORE_1";
108 case InstructionIndex
.FSTORE_2
: return "FSTORE_2";
109 case InstructionIndex
.FSTORE_3
: return "FSTORE_3";
110 case InstructionIndex
.DSTORE_0
: return "DSTORE_0";
111 case InstructionIndex
.DSTORE_1
: return "DSTORE_1";
112 case InstructionIndex
.DSTORE_2
: return "DSTORE_2";
113 case InstructionIndex
.DSTORE_3
: return "DSTORE_3";
114 case InstructionIndex
.ASTORE_0
: return "ASTORE_0";
115 case InstructionIndex
.ASTORE_1
: return "ASTORE_1";
116 case InstructionIndex
.ASTORE_2
: return "ASTORE_2";
117 case InstructionIndex
.ASTORE_3
: return "ASTORE_3";
118 case InstructionIndex
.IASTORE
: return "IASTORE";
119 case InstructionIndex
.LASTORE
: return "LASTORE";
120 case InstructionIndex
.FASTORE
: return "FASTORE";
121 case InstructionIndex
.DASTORE
: return "DASTORE";
122 case InstructionIndex
.AASTORE
: return "AASTORE";
123 case InstructionIndex
.BASTORE
: return "BASTORE";
124 case InstructionIndex
.CASTORE
: return "CASTORE";
125 case InstructionIndex
.SASTORE
: return "SASTORE";
126 case InstructionIndex
.POP
: return "POP";
127 case InstructionIndex
.POP2
: return "POP2";
128 case InstructionIndex
.DUP
: return "DUP";
129 case InstructionIndex
.DUP_X1
: return "DUP_X1";
130 case InstructionIndex
.DUP_X2
: return "DUP_X2";
131 case InstructionIndex
.DUP2
: return "DUP2";
132 case InstructionIndex
.DUP2_X1
: return "DUP2_X1";
133 case InstructionIndex
.DUP2_X2
: return "DUP2_X2";
134 case InstructionIndex
.SWAP
: return "SWAP";
135 case InstructionIndex
.IADD
: return "IADD";
136 case InstructionIndex
.LADD
: return "LADD";
137 case InstructionIndex
.FADD
: return "FADD";
138 case InstructionIndex
.DADD
: return "DADD";
139 case InstructionIndex
.ISUB
: return "ISUB";
140 case InstructionIndex
.LSUB
: return "LSUB";
141 case InstructionIndex
.FSUB
: return "FSUB";
142 case InstructionIndex
.DSUB
: return "DSUB";
143 case InstructionIndex
.IMUL
: return "IMUL";
144 case InstructionIndex
.LMUL
: return "LMUL";
145 case InstructionIndex
.FMUL
: return "FMUL";
146 case InstructionIndex
.DMUL
: return "DMUL";
147 case InstructionIndex
.IDIV
: return "IDIV";
148 case InstructionIndex
.LDIV
: return "LDIV";
149 case InstructionIndex
.FDIV
: return "FDIV";
150 case InstructionIndex
.DDIV
: return "DDIV";
151 case InstructionIndex
.IREM
: return "IREM";
152 case InstructionIndex
.LREM
: return "LREM";
153 case InstructionIndex
.FREM
: return "FREM";
154 case InstructionIndex
.DREM
: return "DREM";
155 case InstructionIndex
.INEG
: return "INEG";
156 case InstructionIndex
.LNEG
: return "LNEG";
157 case InstructionIndex
.FNEG
: return "FNEG";
158 case InstructionIndex
.DNEG
: return "DNEG";
159 case InstructionIndex
.ISHL
: return "ISHL";
160 case InstructionIndex
.LSHL
: return "LSHL";
161 case InstructionIndex
.ISHR
: return "ISHR";
162 case InstructionIndex
.LSHR
: return "LSHR";
163 case InstructionIndex
.IUSHR
: return "IUSHR";
164 case InstructionIndex
.LUSHR
: return "LUSHR";
165 case InstructionIndex
.IAND
: return "IAND";
166 case InstructionIndex
.LAND
: return "LAND";
167 case InstructionIndex
.IOR
: return "IOR";
168 case InstructionIndex
.LOR
: return "LOR";
169 case InstructionIndex
.IXOR
: return "IXOR";
170 case InstructionIndex
.LXOR
: return "LXOR";
171 case InstructionIndex
.IINC
: return "IINC";
172 case InstructionIndex
.I2L
: return "I2L";
173 case InstructionIndex
.I2F
: return "I2F";
174 case InstructionIndex
.I2D
: return "I2D";
175 case InstructionIndex
.L2I
: return "L2I";
176 case InstructionIndex
.L2F
: return "L2F";
177 case InstructionIndex
.L2D
: return "L2D";
178 case InstructionIndex
.F2I
: return "F2I";
179 case InstructionIndex
.F2L
: return "F2L";
180 case InstructionIndex
.F2D
: return "F2D";
181 case InstructionIndex
.D2I
: return "D2I";
182 case InstructionIndex
.D2L
: return "D2L";
183 case InstructionIndex
.D2F
: return "D2F";
184 case InstructionIndex
.I2B
: return "I2B";
185 case InstructionIndex
.I2C
: return "I2C";
186 case InstructionIndex
.I2S
: return "I2S";
187 case InstructionIndex
.LCMP
: return "LCMP";
188 case InstructionIndex
.FCMPL
: return "FCMPL";
189 case InstructionIndex
.FCMPG
: return "FCMPG";
190 case InstructionIndex
.DCMPL
: return "DCMPL";
191 case InstructionIndex
.DCMPG
: return "DCMPG";
192 case InstructionIndex
.IFEQ
: return "IFEQ";
193 case InstructionIndex
.IFNE
: return "IFNE";
194 case InstructionIndex
.IFLT
: return "IFLT";
195 case InstructionIndex
.IFGE
: return "IFGE";
196 case InstructionIndex
.IFGT
: return "IFGT";
197 case InstructionIndex
.IFLE
: return "IFLE";
198 case InstructionIndex
.IF_ICMPEQ
: return "IF_ICMPEQ";
199 case InstructionIndex
.IF_ICMPNE
: return "IF_ICMPNE";
200 case InstructionIndex
.IF_ICMPLT
: return "IF_ICMPLT";
201 case InstructionIndex
.IF_ICMPGE
: return "IF_ICMPGE";
202 case InstructionIndex
.IF_ICMPGT
: return "IF_ICMPGT";
203 case InstructionIndex
.IF_ICMPLE
: return "IF_ICMPLE";
204 case InstructionIndex
.IF_ACMPEQ
: return "IF_ACMPEQ";
205 case InstructionIndex
.IF_ACMPNE
: return "IF_ACMPNE";
206 case InstructionIndex
.GOTO
: return "GOTO";
207 case InstructionIndex
.JSR
: return "JSR";
208 case InstructionIndex
.RET
: return "RET";
209 case InstructionIndex
.TABLESWITCH
: return "TABLESWITCH";
210 case InstructionIndex
.LOOKUPSWITCH
: return "LOOKUPSWITCH";
211 case InstructionIndex
.IRETURN
: return "IRETURN";
212 case InstructionIndex
.LRETURN
: return "LRETURN";
213 case InstructionIndex
.FRETURN
: return "FRETURN";
214 case InstructionIndex
.DRETURN
: return "DRETURN";
215 case InstructionIndex
.ARETURN
: return "ARETURN";
216 case InstructionIndex
.RETURN
: return "RETURN";
217 case InstructionIndex
.GETSTATIC
: return "GETSTATIC";
218 case InstructionIndex
.PUTSTATIC
: return "PUTSTATIC";
219 case InstructionIndex
.GETFIELD
: return "GETFIELD";
220 case InstructionIndex
.PUTFIELD
: return "PUTFIELD";
221 case InstructionIndex
.INVOKEVIRTUAL
: return "INVOKEVIRTUAL";
222 case InstructionIndex
.INVOKESPECIAL
: return "INVOKESPECIAL";
223 case InstructionIndex
.INVOKESTATIC
: return "INVOKESTATIC";
224 case InstructionIndex
.INVOKEINTERFACE
: return "INVOKEINTERFACE";
225 case InstructionIndex
.INVOKEDYNAMIC
: return "INVOKEDYNAMIC";
226 case InstructionIndex
.NEW
: return "NEW";
227 case InstructionIndex
.NEWARRAY
: return "NEWARRAY";
228 case InstructionIndex
.ANEWARRAY
: return "ANEWARRAY";
229 case InstructionIndex
.ARRAYLENGTH
: return "ARRAYLENGTH";
230 case InstructionIndex
.ATHROW
: return "ATHROW";
231 case InstructionIndex
.CHECKCAST
: return "CHECKCAST";
232 case InstructionIndex
.INSTANCEOF
: return "INSTANCEOF";
233 case InstructionIndex
.MONITORENTER
: return "MONITORENTER";
234 case InstructionIndex
.MONITOREXIT
: return "MONITOREXIT";
235 case InstructionIndex
.WIDE
: return "WIDE";
236 case InstructionIndex
.MULTIANEWARRAY
: return "MULTIANEWARRAY";
237 case InstructionIndex
.IFNULL
: return "IFNULL";
238 case InstructionIndex
.IFNONNULL
: return "IFNONNULL";
239 case InstructionIndex
.GOTO_W
: return "GOTO_W";
240 case InstructionIndex
.JSR_W
: return "JSR_W";
241 case InstructionIndex
.BREAKPOINT
: return "BREAKPOINT";
242 case InstructionIndex
.IMPDEP1
: return "IMPDEP1";
243 case InstructionIndex
.IMPDEP2
: return "IMPDEP2";
244 case InstructionIndex
.WIDE_ALOAD
: return "WIDE_ALOAD";
245 case InstructionIndex
.WIDE_ILOAD
: return "WIDE_ILOAD";
246 case InstructionIndex
.WIDE_LLOAD
: return "WIDE_LLOAD";
247 case InstructionIndex
.WIDE_FLOAD
: return "WIDE_FLOAD";
248 case InstructionIndex
.WIDE_DLOAD
: return "WIDE_DLOAD";
249 case InstructionIndex
.WIDE_ASTORE
: return "WIDE_ASTORE";
250 case InstructionIndex
.WIDE_ISTORE
: return "WIDE_ISTORE";
251 case InstructionIndex
.WIDE_LSTORE
: return "WIDE_LSTORE";
252 case InstructionIndex
.WIDE_FSTORE
: return "WIDE_FSTORE";
253 case InstructionIndex
.WIDE_DSTORE
: return "WIDE_DSTORE";
254 case InstructionIndex
.WIDE_IINC
: return "WIDE_IINC";
258 return String
.format("UNKNOWN_%04X", __op
);