| 1 | // Licensed to the .NET Foundation under one or more agreements. |
|---|---|
| 2 | // The .NET Foundation licenses this file to you under the MIT license. |
| 3 | // See the LICENSE file in the project root for more information. |
| 4 | |
| 5 | #include "openum.h" |
| 6 | |
| 7 | typedef struct |
| 8 | { |
| 9 | const char * pszName; |
| 10 | |
| 11 | OPCODE Ref; // reference codes |
| 12 | |
| 13 | BYTE Type; // Inline0 etc. |
| 14 | |
| 15 | BYTE Len; // std mapping |
| 16 | BYTE Std1; |
| 17 | BYTE Std2; |
| 18 | } opcodeinfo_t; |
| 19 | |
| 20 | #ifdef DECLARE_DATA |
| 21 | opcodeinfo_t OpcodeInfo[] = |
| 22 | { |
| 23 | #define OPDEF(c,s,pop,push,args,type,l,s1,s2,ctrl) { s,c,args,l,s1,s2 }, |
| 24 | #include "opcode.def" |
| 25 | #undef OPDEF |
| 26 | }; |
| 27 | #else |
| 28 | extern opcodeinfo_t OpcodeInfo[]; |
| 29 | #endif |
| 30 | |
| 31 | |
| 32 |