/[rvvs89]/uvm/core/op.h


UCC Code Repository

Contents of /uvm/core/op.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 357 - (show annotations) (download)
Tue Mar 2 14:08:21 2010 UTC (11 years, 9 months ago) by rvvs89
File MIME type: text/plain
File size: 7324 byte(s)
Adding opcode mnemonics and their corresponding byte-code values.
1 /*
2 * File: op.h
3 * Author: Rufus Garton Smith
4 *
5 * Java op-code values.
6 *
7 * $Id$
8 * Created on 1 March 2010, 9:19 PM
9 */
10
11 #ifndef _OP_H
12 #define _OP_H
13
14 #ifdef __cplusplus
15 //extern "C" {
16 #endif
17
18 #define OP_NOP (0X00)
19 #define OP_ACONST_NULL (0X01)
20 #define OP_ICONST_M1 (0X02)
21 #define OP_ICONST_0 (0X03)
22 #define OP_ICONST_1 (0X04)
23 #define OP_ICONST_2 (0X05)
24 #define OP_ICONST_3 (0X06)
25 #define OP_ICONST_4 (0X07)
26 #define OP_ICONST_5 (0X08)
27 #define OP_LCONST_0 (0X09)
28 #define OP_LCONST_1 (0X0A)
29 #define OP_FCONST_0 (0X0B)
30 #define OP_FCONST_1 (0X0C)
31 #define OP_FCONST_2 (0X0D)
32 #define OP_DCONST_0 (0X0E)
33 #define OP_DCONST_1 (0X0F)
34 #define OP_BIPUSH (0X10)
35 #define OP_SIPUSH (0X11)
36 #define OP_LDC (0X12)
37 #define OP_LDC_W (0X13)
38 #define OP_LDC2_W (0X14)
39 #define OP_ILOAD (0X15)
40 #define OP_LLOAD (0X16)
41 #define OP_FLOAD (0X17)
42 #define OP_DLOAD (0X18)
43 #define OP_ALOAD (0X19)
44 #define OP_ILOAD_0 (0X1A)
45 #define OP_ILOAD_1 (0X1B)
46 #define OP_ILOAD_2 (0X1C)
47 #define OP_ILOAD_3 (0X1D)
48 #define OP_LLOAD_0 (0X1E)
49 #define OP_LLOAD_1 (0X1F)
50 #define OP_LLOAD_2 (0X20)
51 #define OP_LLOAD_3 (0X21)
52 #define OP_FLOAD_0 (0X22)
53 #define OP_FLOAD_1 (0X23)
54 #define OP_FLOAD_2 (0X24)
55 #define OP_FLOAD_3 (0X25)
56 #define OP_DLOAD_0 (0X26)
57 #define OP_DLOAD_1 (0X27)
58 #define OP_DLOAD_2 (0X28)
59 #define OP_DLOAD_3 (0X29)
60 #define OP_ALOAD_0 (0X2A)
61 #define OP_ALOAD_1 (0X2B)
62 #define OP_ALOAD_2 (0X2C)
63 #define OP_ALOAD_3 (0X2D)
64 #define OP_IALOAD (0X2E)
65 #define OP_LALOAD (0X2F)
66 #define OP_FALOAD (0X30)
67 #define OP_DALOAD (0X31)
68 #define OP_AALOAD (0X32)
69 #define OP_BALOAD (0X33)
70 #define OP_CALOAD (0X34)
71 #define OP_SALOAD (0X35)
72 #define OP_ISTORE (0X36)
73 #define OP_LSTORE (0X37)
74 #define OP_FSTORE (0X38)
75 #define OP_DSTORE (0X39)
76 #define OP_ASTORE (0X3A)
77 #define OP_ISTORE_0 (0X3B)
78 #define OP_ISTORE_1 (0X3C)
79 #define OP_ISTORE_2 (0X3D)
80 #define OP_ISTORE_3 (0X3E)
81 #define OP_LSTORE_0 (0X3F)
82 #define OP_LSTORE_1 (0X40)
83 #define OP_LSTORE_2 (0X41)
84 #define OP_LSTORE_3 (0X42)
85 #define OP_FSTORE_0 (0X43)
86 #define OP_FSTORE_1 (0X44)
87 #define OP_FSTORE_2 (0X45)
88 #define OP_FSTORE_3 (0X46)
89 #define OP_DSTORE_0 (0X47)
90 #define OP_DSTORE_1 (0X48)
91 #define OP_DSTORE_2 (0X49)
92 #define OP_DSTORE_3 (0X4A)
93 #define OP_ASTORE_0 (0X4B)
94 #define OP_ASTORE_1 (0X4C)
95 #define OP_ASTORE_2 (0X4D)
96 #define OP_ASTORE_3 (0X4E)
97 #define OP_IASTORE (0X4F)
98 #define OP_LASTORE (0X50)
99 #define OP_FASTORE (0X51)
100 #define OP_DASTORE (0X52)
101 #define OP_AASTORE (0X53)
102 #define OP_BASTORE (0X54)
103 #define OP_CASTORE (0X55)
104 #define OP_SASTORE (0X56)
105 #define OP_POP (0X57)
106 #define OP_POP2 (0X58)
107 #define OP_DUP (0X59)
108 #define OP_DUP_X1 (0X5A)
109 #define OP_DUP_X2 (0X5B)
110 #define OP_DUP2 (0X5C)
111 #define OP_DUP2_X1 (0X5D)
112 #define OP_DUP2_X2 (0X5E)
113 #define OP_SWAP (0X5F)
114 #define OP_IADD (0X60)
115 #define OP_LADD (0X61)
116 #define OP_FADD (0X62)
117 #define OP_DADD (0X63)
118 #define OP_ISUB (0X64)
119 #define OP_LSUB (0X65)
120 #define OP_FSUB (0X66)
121 #define OP_DSUB (0X67)
122 #define OP_IMUL (0X68)
123 #define OP_LMUL (0X69)
124 #define OP_FMUL (0X6A)
125 #define OP_DMUL (0X6B)
126 #define OP_IDIV (0X6C)
127 #define OP_LDIV (0X6D)
128 #define OP_FDIV (0X6E)
129 #define OP_DDIV (0X6F)
130 #define OP_IREM (0X70)
131 #define OP_LREM (0X71)
132 #define OP_FREM (0X72)
133 #define OP_DREM (0X73)
134 #define OP_INEG (0X74)
135 #define OP_LNEG (0X75)
136 #define OP_FNEG (0X76)
137 #define OP_DNEG (0X77)
138 #define OP_ISHL (0X78)
139 #define OP_LSHL (0X79)
140 #define OP_ISHR (0X7A)
141 #define OP_LSHR (0X7B)
142 #define OP_IUSHR (0X7C)
143 #define OP_LUSHR (0X7D)
144 #define OP_IAND (0X7E)
145 #define OP_LAND (0X7F)
146 #define OP_IOR (0X80)
147 #define OP_LOR (0X81)
148 #define OP_IXOR (0X82)
149 #define OP_LXOR (0X83)
150 #define OP_IINC (0X84)
151 #define OP_I2L (0X85)
152 #define OP_I2F (0X86)
153 #define OP_I2D (0X87)
154 #define OP_L2I (0X88)
155 #define OP_L2F (0X89)
156 #define OP_L2D (0X8A)
157 #define OP_F2I (0X8B)
158 #define OP_F2L (0X8C)
159 #define OP_F2D (0X8D)
160 #define OP_D2I (0X8E)
161 #define OP_D2L (0X8F)
162 #define OP_D2F (0X90)
163 #define OP_I2B (0X91)
164 #define OP_I2C (0X92)
165 #define OP_I2S (0X93)
166 #define OP_LCMP (0X94)
167 #define OP_FCMPL (0X95)
168 #define OP_FCMPG (0X96)
169 #define OP_DCMPL (0X97)
170 #define OP_DCMPG (0X98)
171 #define OP_IFEQ (0X99)
172 #define OP_IFNE (0X9A)
173 #define OP_IFLT (0X9B)
174 #define OP_IFGE (0X9C)
175 #define OP_IFGT (0X9D)
176 #define OP_IFLE (0X9E)
177 #define OP_IF_ICMPEQ (0X9F)
178 #define OP_IF_ICMPNE (0XA0)
179 #define OP_IF_ICMPLT (0XA1)
180 #define OP_IF_ICMPGE (0XA2)
181 #define OP_IF_ICMPGT (0XA3)
182 #define OP_IF_ICMPLE (0XA4)
183 #define OP_IF_ACMPEQ (0XA5)
184 #define OP_IF_ACMPNE (0XA6)
185 #define OP_GOTO (0XA7)
186 #define OP_JSR (0XA8)
187 #define OP_RET (0XA9)
188 #define OP_TABLESWITCH (0XAA)
189 #define OP_LOOKUPSWITCH (0XAB)
190 #define OP_IRETURN (0XAC)
191 #define OP_LRETURN (0XAD)
192 #define OP_FRETURN (0XAE)
193 #define OP_DRETURN (0XAF)
194 #define OP_ARETURN (0XB0)
195 #define OP_RETURN (0XB1)
196 #define OP_GETSTATIC (0XB2)
197 #define OP_PUTSTATIC (0XB3)
198 #define OP_GETFIELD (0XB4)
199 #define OP_PUTFIELD (0XB5)
200 #define OP_INVOKEVIRTUAL (0XB6)
201 #define OP_INVOKESPECIAL (0XB7)
202 #define OP_INVOKESTATIC (0XB8)
203 #define OP_INVOKEINTERFACE (0XB9)
204 /* unused op-code (0XBA) */
205 #define OP_NEW (0XBB)
206 #define OP_NEWARRAY (0XBC)
207 #define OP_ANEWARRAY (0XBD)
208 #define OP_ARRAYLENGTH (0XBE)
209 #define OP_ATHROW (0XBF)
210 #define OP_CHECKCAST (0XC0)
211 #define OP_INSTANCEOF (0XC1)
212 #define OP_MONITORENTER (0XC2)
213 #define OP_MONITOREXIT (0XC3)
214 #define OP_WIDE (0XC4)
215 #define OP_MULTIANEWARRAY (0XC5)
216 #define OP_IFNULL (0XC6)
217 #define OP_IFNONNULL (0XC7)
218 #define OP_GOTO_W (0XC8)
219 #define OP_JSR_W (0XC9)
220
221 #ifdef __cplusplus
222 //}
223 #endif
224
225 #endif /* _OP_H */

Managed by UCC Webmasters ViewVC Help
Powered by ViewVC 1.1.26