Zydis  v3.1.0
DecoderTypes.h
Go to the documentation of this file.
1 /***************************************************************************************************
2 
3  Zyan Disassembler Library (Zydis)
4 
5  Original Author : Florian Bernd
6 
7  * Permission is hereby granted, free of charge, to any person obtaining a copy
8  * of this software and associated documentation files (the "Software"), to deal
9  * in the Software without restriction, including without limitation the rights
10  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11  * copies of the Software, and to permit persons to whom the Software is
12  * furnished to do so, subject to the following conditions:
13  *
14  * The above copyright notice and this permission notice shall be included in all
15  * copies or substantial portions of the Software.
16  *
17  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23  * SOFTWARE.
24 
25 ***************************************************************************************************/
26 
32 #ifndef ZYDIS_INSTRUCTIONINFO_H
33 #define ZYDIS_INSTRUCTIONINFO_H
34 
35 #include <Zycore/Types.h>
36 #include <Zydis/MetaInfo.h>
37 #include <Zydis/Mnemonic.h>
38 #include <Zydis/Register.h>
39 #include <Zydis/SharedTypes.h>
40 
41 #ifdef __cplusplus
42 extern "C" {
43 #endif
44 
45 /* ============================================================================================== */
46 /* Decoded operand */
47 /* ============================================================================================== */
48 
49 /* ---------------------------------------------------------------------------------------------- */
50 /* Memory type */
51 /* ---------------------------------------------------------------------------------------------- */
52 
57 {
73 
83 
84 /* ---------------------------------------------------------------------------------------------- */
85 /* Decoded operand */
86 /* ---------------------------------------------------------------------------------------------- */
87 
91 typedef struct ZydisDecodedOperand_
92 {
96  ZyanU8 id;
116  ZyanU16 size;
128  ZyanU16 element_count;
133  {
138  // TODO: AVX512_4VNNIW MULTISOURCE registers
139  } reg;
144  {
164  ZyanU8 scale;
169  {
177  ZyanI64 value;
178  } disp;
179  } mem;
184  {
185  ZyanU16 segment;
186  ZyanU32 offset;
187  } ptr;
192  {
196  ZyanBool is_signed;
201  ZyanBool is_relative;
206  {
207  ZyanU64 u;
208  ZyanI64 s;
209  } value;
210  } imm;
212 
213 /* ---------------------------------------------------------------------------------------------- */
214 
215 /* ============================================================================================== */
216 /* Decoded instruction */
217 /* ============================================================================================== */
218 
219 /* ---------------------------------------------------------------------------------------------- */
220 /* Instruction attributes */
221 /* ---------------------------------------------------------------------------------------------- */
222 
227 
231 #define ZYDIS_ATTRIB_HAS_MODRM 0x0000000000000001 // (1 << 0)
235 #define ZYDIS_ATTRIB_HAS_SIB 0x0000000000000002 // (1 << 1)
239 #define ZYDIS_ATTRIB_HAS_REX 0x0000000000000004 // (1 << 2)
243 #define ZYDIS_ATTRIB_HAS_XOP 0x0000000000000008 // (1 << 3)
247 #define ZYDIS_ATTRIB_HAS_VEX 0x0000000000000010 // (1 << 4)
251 #define ZYDIS_ATTRIB_HAS_EVEX 0x0000000000000020 // (1 << 5)
255 #define ZYDIS_ATTRIB_HAS_MVEX 0x0000000000000040 // (1 << 6)
259 #define ZYDIS_ATTRIB_IS_RELATIVE 0x0000000000000080 // (1 << 7)
265 #define ZYDIS_ATTRIB_IS_PRIVILEGED 0x0000000000000100 // (1 << 8)
266 
270 #define ZYDIS_ATTRIB_CPUFLAG_ACCESS 0x0000001000000000 // (1 << 36) // TODO: rebase
271 
275 #define ZYDIS_ATTRIB_CPU_STATE_CR 0x0000002000000000 // (1 << 37) // TODO: rebase
279 #define ZYDIS_ATTRIB_CPU_STATE_CW 0x0000004000000000 // (1 << 38) // TODO: rebase
283 #define ZYDIS_ATTRIB_FPU_STATE_CR 0x0000008000000000 // (1 << 39) // TODO: rebase
287 #define ZYDIS_ATTRIB_FPU_STATE_CW 0x0000010000000000 // (1 << 40) // TODO: rebase
291 #define ZYDIS_ATTRIB_XMM_STATE_CR 0x0000020000000000 // (1 << 41) // TODO: rebase
295 #define ZYDIS_ATTRIB_XMM_STATE_CW 0x0000040000000000 // (1 << 42) // TODO: rebase
296 
300 #define ZYDIS_ATTRIB_ACCEPTS_LOCK 0x0000000000000200 // (1 << 9)
304 #define ZYDIS_ATTRIB_ACCEPTS_REP 0x0000000000000400 // (1 << 10)
308 #define ZYDIS_ATTRIB_ACCEPTS_REPE 0x0000000000000800 // (1 << 11)
312 #define ZYDIS_ATTRIB_ACCEPTS_REPZ 0x0000000000000800 // (1 << 11)
316 #define ZYDIS_ATTRIB_ACCEPTS_REPNE 0x0000000000001000 // (1 << 12)
320 #define ZYDIS_ATTRIB_ACCEPTS_REPNZ 0x0000000000001000 // (1 << 12)
324 #define ZYDIS_ATTRIB_ACCEPTS_BND 0x0000000000002000 // (1 << 13)
328 #define ZYDIS_ATTRIB_ACCEPTS_XACQUIRE 0x0000000000004000 // (1 << 14)
332 #define ZYDIS_ATTRIB_ACCEPTS_XRELEASE 0x0000000000008000 // (1 << 15)
337 #define ZYDIS_ATTRIB_ACCEPTS_HLE_WITHOUT_LOCK 0x0000000000010000 // (1 << 16)
341 #define ZYDIS_ATTRIB_ACCEPTS_BRANCH_HINTS 0x0000000000020000 // (1 << 17)
346 #define ZYDIS_ATTRIB_ACCEPTS_SEGMENT 0x0000000000040000 // (1 << 18)
350 #define ZYDIS_ATTRIB_HAS_LOCK 0x0000000000080000 // (1 << 19)
354 #define ZYDIS_ATTRIB_HAS_REP 0x0000000000100000 // (1 << 20)
358 #define ZYDIS_ATTRIB_HAS_REPE 0x0000000000200000 // (1 << 21)
362 #define ZYDIS_ATTRIB_HAS_REPZ 0x0000000000200000 // (1 << 21)
366 #define ZYDIS_ATTRIB_HAS_REPNE 0x0000000000400000 // (1 << 22)
370 #define ZYDIS_ATTRIB_HAS_REPNZ 0x0000000000400000 // (1 << 22)
374 #define ZYDIS_ATTRIB_HAS_BND 0x0000000000800000 // (1 << 23)
378 #define ZYDIS_ATTRIB_HAS_XACQUIRE 0x0000000001000000 // (1 << 24)
382 #define ZYDIS_ATTRIB_HAS_XRELEASE 0x0000000002000000 // (1 << 25)
386 #define ZYDIS_ATTRIB_HAS_BRANCH_NOT_TAKEN 0x0000000004000000 // (1 << 26)
390 #define ZYDIS_ATTRIB_HAS_BRANCH_TAKEN 0x0000000008000000 // (1 << 27)
394 #define ZYDIS_ATTRIB_HAS_SEGMENT 0x00000003F0000000
398 #define ZYDIS_ATTRIB_HAS_SEGMENT_CS 0x0000000010000000 // (1 << 28)
402 #define ZYDIS_ATTRIB_HAS_SEGMENT_SS 0x0000000020000000 // (1 << 29)
406 #define ZYDIS_ATTRIB_HAS_SEGMENT_DS 0x0000000040000000 // (1 << 30)
410 #define ZYDIS_ATTRIB_HAS_SEGMENT_ES 0x0000000080000000 // (1 << 31)
414 #define ZYDIS_ATTRIB_HAS_SEGMENT_FS 0x0000000100000000 // (1 << 32)
418 #define ZYDIS_ATTRIB_HAS_SEGMENT_GS 0x0000000200000000 // (1 << 33)
422 #define ZYDIS_ATTRIB_HAS_OPERANDSIZE 0x0000000400000000 // (1 << 34) // TODO: rename
426 #define ZYDIS_ATTRIB_HAS_ADDRESSSIZE 0x0000000800000000 // (1 << 35) // TODO: rename
427 
428 /* ---------------------------------------------------------------------------------------------- */
429 /* R/E/FLAGS info */
430 /* ---------------------------------------------------------------------------------------------- */
431 
435 typedef ZyanU32 ZydisCPUFlags;
436 
440 typedef enum ZydisCPUFlag_
441 {
526 
534  ZYDIS_CPUFLAG_REQUIRED_BITS = ZYAN_BITS_TO_REPRESENT(ZYDIS_CPUFLAG_MAX_VALUE)
536 
541 {
570 
580 
581 /* ---------------------------------------------------------------------------------------------- */
582 /* Branch types */
583 /* ---------------------------------------------------------------------------------------------- */
584 
588 typedef enum ZydisBranchType_
589 {
606 
616 
617 /* ---------------------------------------------------------------------------------------------- */
618 /* SSE/AVX exception-class */
619 /* ---------------------------------------------------------------------------------------------- */
620 
625 {
627  // TODO: FP Exceptions
667 
677 
678 /* ---------------------------------------------------------------------------------------------- */
679 /* AVX mask mode */
680 /* ---------------------------------------------------------------------------------------------- */
681 
685 typedef enum ZydisMaskMode_
686 {
708 
718 
719 /* ---------------------------------------------------------------------------------------------- */
720 /* AVX broadcast-mode */
721 /* ---------------------------------------------------------------------------------------------- */
722 
727 {
741 
751 
752 /* ---------------------------------------------------------------------------------------------- */
753 /* AVX rounding-mode */
754 /* ---------------------------------------------------------------------------------------------- */
755 
759 typedef enum ZydisRoundingMode_
760 {
778 
788 
789 /* ---------------------------------------------------------------------------------------------- */
790 /* KNC swizzle-mode */
791 /* ---------------------------------------------------------------------------------------------- */
792 
796 typedef enum ZydisSwizzleMode_
797 {
807 
817 
818 /* ---------------------------------------------------------------------------------------------- */
819 /* KNC conversion-mode */
820 /* ---------------------------------------------------------------------------------------------- */
821 
826 {
833 
843 
844 /* ---------------------------------------------------------------------------------------------- */
845 /* Legacy prefix type */
846 /* ---------------------------------------------------------------------------------------------- */
847 
851 typedef enum ZydisPrefixType_
852 {
871 
881 
882 // TODO: Check effective for 66/67 prefixes (currently defaults to EFFECTIVE)
883 
884 /* ---------------------------------------------------------------------------------------------- */
885 /* Decoded instruction */
886 /* ---------------------------------------------------------------------------------------------- */
887 
892 {
904  ZyanU8 length;
916  ZyanU8 opcode;
920  ZyanU8 stack_width;
949  {
962  {
966  ZyanU16 vector_length;
971  {
980  } mask;
985  {
992  ZyanBool is_static;
1002  {
1012  {
1022  {
1032  ZyanBool has_sae;
1037  // TODO: publish EVEX tuple-type and MVEX functionality
1038  } avx;
1043  {
1064  } meta;
1070  {
1079  {
1087  ZyanU8 value;
1093  {
1097  ZyanU8 W;
1101  ZyanU8 R;
1105  ZyanU8 X;
1109  ZyanU8 B;
1121  ZyanU8 offset;
1122  } rex;
1127  {
1131  ZyanU8 R;
1135  ZyanU8 X;
1139  ZyanU8 B;
1143  ZyanU8 m_mmmm;
1147  ZyanU8 W;
1152  ZyanU8 vvvv;
1156  ZyanU8 L;
1160  ZyanU8 pp;
1165  ZyanU8 offset;
1166  } xop;
1171  {
1175  ZyanU8 R;
1179  ZyanU8 X;
1183  ZyanU8 B;
1187  ZyanU8 m_mmmm;
1191  ZyanU8 W;
1196  ZyanU8 vvvv;
1200  ZyanU8 L;
1204  ZyanU8 pp;
1209  ZyanU8 offset;
1213  ZyanU8 size;
1214  } vex;
1219  {
1223  ZyanU8 R;
1227  ZyanU8 X;
1231  ZyanU8 B;
1235  ZyanU8 R2;
1239  ZyanU8 mm;
1243  ZyanU8 W;
1248  ZyanU8 vvvv;
1252  ZyanU8 pp;
1256  ZyanU8 z;
1260  ZyanU8 L2;
1264  ZyanU8 L;
1268  ZyanU8 b;
1272  ZyanU8 V2;
1276  ZyanU8 aaa;
1281  ZyanU8 offset;
1282  } evex;
1287  {
1291  ZyanU8 R;
1295  ZyanU8 X;
1299  ZyanU8 B;
1303  ZyanU8 R2;
1307  ZyanU8 mmmm;
1311  ZyanU8 W;
1316  ZyanU8 vvvv;
1320  ZyanU8 pp;
1324  ZyanU8 E;
1328  ZyanU8 SSS;
1332  ZyanU8 V2;
1336  ZyanU8 kkk;
1341  ZyanU8 offset;
1342  } mvex;
1347  {
1351  ZyanU8 mod;
1355  ZyanU8 reg;
1359  ZyanU8 rm;
1364  ZyanU8 offset;
1370  {
1374  ZyanU8 scale;
1378  ZyanU8 index;
1382  ZyanU8 base;
1387  ZyanU8 offset;
1388  } sib;
1393  {
1397  ZyanI64 value;
1401  ZyanU8 size;
1402  // TODO: publish cd8 scale
1407  ZyanU8 offset;
1408  } disp;
1413  {
1417  ZyanBool is_signed;
1422  ZyanBool is_relative;
1427  {
1428  ZyanU64 u;
1429  ZyanI64 s;
1434  ZyanU8 size;
1439  ZyanU8 offset;
1440  } imm[2];
1441  } raw;
1443 
1444 /* ---------------------------------------------------------------------------------------------- */
1445 
1446 /* ============================================================================================== */
1447 
1448 #ifdef __cplusplus
1449 }
1450 #endif
1451 
1452 #endif /* ZYDIS_INSTRUCTIONINFO_H */
ZyanU32 ZydisCPUFlags
Defines the ZydisCPUFlags data-type.
Definition: DecoderTypes.h:435
enum ZydisConversionMode_ ZydisConversionMode
Defines the ZydisConversionMode enum.
enum ZydisMaskMode_ ZydisMaskMode
Defines the ZydisMaskMode enum.
enum ZydisRoundingMode_ ZydisRoundingMode
Defines the ZydisRoundingMode enum.
ZydisExceptionClass_
Defines the ZydisExceptionClass enum.
Definition: DecoderTypes.h:625
@ ZYDIS_EXCEPTION_CLASS_E5
Definition: DecoderTypes.h:652
@ ZYDIS_EXCEPTION_CLASS_AVX4
Definition: DecoderTypes.h:637
@ ZYDIS_EXCEPTION_CLASS_E1NF
Definition: DecoderTypes.h:645
@ ZYDIS_EXCEPTION_CLASS_AVX7
Definition: DecoderTypes.h:640
@ ZYDIS_EXCEPTION_CLASS_E7NM128
Definition: DecoderTypes.h:657
@ ZYDIS_EXCEPTION_CLASS_AVX11
Definition: DecoderTypes.h:642
@ ZYDIS_EXCEPTION_CLASS_E12NP
Definition: DecoderTypes.h:664
@ ZYDIS_EXCEPTION_CLASS_MAX_VALUE
Maximum value of this enum.
Definition: DecoderTypes.h:671
@ ZYDIS_EXCEPTION_CLASS_AVX3
Definition: DecoderTypes.h:636
@ ZYDIS_EXCEPTION_CLASS_AVX5
Definition: DecoderTypes.h:638
@ ZYDIS_EXCEPTION_CLASS_SSE2
Definition: DecoderTypes.h:629
@ ZYDIS_EXCEPTION_CLASS_SSE3
Definition: DecoderTypes.h:630
@ ZYDIS_EXCEPTION_CLASS_E10
Definition: DecoderTypes.h:659
@ ZYDIS_EXCEPTION_CLASS_E3
Definition: DecoderTypes.h:648
@ ZYDIS_EXCEPTION_CLASS_E1
Definition: DecoderTypes.h:644
@ ZYDIS_EXCEPTION_CLASS_SSE5
Definition: DecoderTypes.h:632
@ ZYDIS_EXCEPTION_CLASS_SSE7
Definition: DecoderTypes.h:633
@ ZYDIS_EXCEPTION_CLASS_AVX6
Definition: DecoderTypes.h:639
@ ZYDIS_EXCEPTION_CLASS_K20
Definition: DecoderTypes.h:665
@ ZYDIS_EXCEPTION_CLASS_E9NF
Definition: DecoderTypes.h:658
@ ZYDIS_EXCEPTION_CLASS_SSE4
Definition: DecoderTypes.h:631
@ ZYDIS_EXCEPTION_CLASS_E3NF
Definition: DecoderTypes.h:649
@ ZYDIS_EXCEPTION_CLASS_E11
Definition: DecoderTypes.h:661
@ ZYDIS_EXCEPTION_CLASS_E4
Definition: DecoderTypes.h:650
@ ZYDIS_EXCEPTION_CLASS_E12
Definition: DecoderTypes.h:663
@ ZYDIS_EXCEPTION_CLASS_K21
Definition: DecoderTypes.h:666
@ ZYDIS_EXCEPTION_CLASS_E6NF
Definition: DecoderTypes.h:655
@ ZYDIS_EXCEPTION_CLASS_AVX2
Definition: DecoderTypes.h:635
@ ZYDIS_EXCEPTION_CLASS_E2NF
Definition: DecoderTypes.h:647
@ ZYDIS_EXCEPTION_CLASS_SSE1
Definition: DecoderTypes.h:628
@ ZYDIS_EXCEPTION_CLASS_E5NF
Definition: DecoderTypes.h:653
@ ZYDIS_EXCEPTION_CLASS_NONE
Definition: DecoderTypes.h:626
@ ZYDIS_EXCEPTION_CLASS_E6
Definition: DecoderTypes.h:654
@ ZYDIS_EXCEPTION_CLASS_E10NF
Definition: DecoderTypes.h:660
@ ZYDIS_EXCEPTION_CLASS_AVX8
Definition: DecoderTypes.h:641
@ ZYDIS_EXCEPTION_CLASS_E4NF
Definition: DecoderTypes.h:651
@ ZYDIS_EXCEPTION_CLASS_E11NF
Definition: DecoderTypes.h:662
@ ZYDIS_EXCEPTION_CLASS_REQUIRED_BITS
The minimum number of bits required to represent all values of this enum.
Definition: DecoderTypes.h:675
@ ZYDIS_EXCEPTION_CLASS_E2
Definition: DecoderTypes.h:646
@ ZYDIS_EXCEPTION_CLASS_AVX1
Definition: DecoderTypes.h:634
@ ZYDIS_EXCEPTION_CLASS_E7NM
Definition: DecoderTypes.h:656
@ ZYDIS_EXCEPTION_CLASS_AVX12
Definition: DecoderTypes.h:643
ZydisBranchType_
Defines the ZydisBranchType enum.
Definition: DecoderTypes.h:589
@ ZYDIS_BRANCH_TYPE_MAX_VALUE
Maximum value of this enum.
Definition: DecoderTypes.h:610
@ ZYDIS_BRANCH_TYPE_FAR
The instruction is a far (inter-segment) branch instruction.
Definition: DecoderTypes.h:605
@ ZYDIS_BRANCH_TYPE_NONE
The instruction is not a branch instruction.
Definition: DecoderTypes.h:593
@ ZYDIS_BRANCH_TYPE_NEAR
The instruction is a near (16-bit or 32-bit) branch instruction.
Definition: DecoderTypes.h:601
@ ZYDIS_BRANCH_TYPE_SHORT
The instruction is a short (8-bit) branch instruction.
Definition: DecoderTypes.h:597
@ ZYDIS_BRANCH_TYPE_REQUIRED_BITS
The minimum number of bits required to represent all values of this enum.
Definition: DecoderTypes.h:614
ZydisBroadcastMode_
Defines the ZydisBroadcastMode enum.
Definition: DecoderTypes.h:727
@ ZYDIS_BROADCAST_MODE_REQUIRED_BITS
The minimum number of bits required to represent all values of this enum.
Definition: DecoderTypes.h:749
@ ZYDIS_BROADCAST_MODE_1_TO_8
Definition: DecoderTypes.h:731
@ ZYDIS_BROADCAST_MODE_INVALID
Definition: DecoderTypes.h:728
@ ZYDIS_BROADCAST_MODE_1_TO_2
Definition: DecoderTypes.h:729
@ ZYDIS_BROADCAST_MODE_1_TO_64
Definition: DecoderTypes.h:734
@ ZYDIS_BROADCAST_MODE_2_TO_8
Definition: DecoderTypes.h:736
@ ZYDIS_BROADCAST_MODE_4_TO_16
Definition: DecoderTypes.h:739
@ ZYDIS_BROADCAST_MODE_4_TO_8
Definition: DecoderTypes.h:738
@ ZYDIS_BROADCAST_MODE_1_TO_16
Definition: DecoderTypes.h:732
@ ZYDIS_BROADCAST_MODE_1_TO_4
Definition: DecoderTypes.h:730
@ ZYDIS_BROADCAST_MODE_2_TO_4
Definition: DecoderTypes.h:735
@ ZYDIS_BROADCAST_MODE_2_TO_16
Definition: DecoderTypes.h:737
@ ZYDIS_BROADCAST_MODE_MAX_VALUE
Maximum value of this enum.
Definition: DecoderTypes.h:745
@ ZYDIS_BROADCAST_MODE_1_TO_32
Definition: DecoderTypes.h:733
@ ZYDIS_BROADCAST_MODE_8_TO_16
Definition: DecoderTypes.h:740
enum ZydisExceptionClass_ ZydisExceptionClass
Defines the ZydisExceptionClass enum.
ZydisPrefixType_
Defines the ZydisPrefixType enum.
Definition: DecoderTypes.h:852
@ ZYDIS_PREFIX_TYPE_IGNORED
The prefix is ignored by the instruction.
Definition: DecoderTypes.h:859
@ ZYDIS_PREFIX_TYPE_REQUIRED_BITS
The minimum number of bits required to represent all values of this enum.
Definition: DecoderTypes.h:879
@ ZYDIS_PREFIX_TYPE_MAX_VALUE
Maximum value of this enum.
Definition: DecoderTypes.h:875
@ ZYDIS_PREFIX_TYPE_MANDATORY
The prefix is used as a mandatory prefix.
Definition: DecoderTypes.h:870
@ ZYDIS_PREFIX_TYPE_EFFECTIVE
The prefix is effectively used by the instruction.
Definition: DecoderTypes.h:863
ZydisCPUFlag_
Defines the ZydisCPUFlag enum.
Definition: DecoderTypes.h:441
@ ZYDIS_CPUFLAG_ZF
Zero flag.
Definition: DecoderTypes.h:457
@ ZYDIS_CPUFLAG_TF
Trap flag.
Definition: DecoderTypes.h:465
@ ZYDIS_CPUFLAG_C1
FPU condition-code flag 1.
Definition: DecoderTypes.h:517
@ ZYDIS_CPUFLAG_SF
Sign flag.
Definition: DecoderTypes.h:461
@ ZYDIS_CPUFLAG_OF
Overflow flag.
Definition: DecoderTypes.h:477
@ ZYDIS_CPUFLAG_IF
Interrupt enable flag.
Definition: DecoderTypes.h:469
@ ZYDIS_CPUFLAG_VIP
Virtual interrupt pending.
Definition: DecoderTypes.h:505
@ ZYDIS_CPUFLAG_VIF
Virtual interrupt flag.
Definition: DecoderTypes.h:501
@ ZYDIS_CPUFLAG_CF
Carry flag.
Definition: DecoderTypes.h:445
@ ZYDIS_CPUFLAG_PF
Parity flag.
Definition: DecoderTypes.h:449
@ ZYDIS_CPUFLAG_C3
FPU condition-code flag 3.
Definition: DecoderTypes.h:525
@ ZYDIS_CPUFLAG_C2
FPU condition-code flag 2.
Definition: DecoderTypes.h:521
@ ZYDIS_CPUFLAG_MAX_VALUE
Maximum value of this enum.
Definition: DecoderTypes.h:530
@ ZYDIS_CPUFLAG_C0
FPU condition-code flag 0.
Definition: DecoderTypes.h:513
@ ZYDIS_CPUFLAG_DF
Direction flag.
Definition: DecoderTypes.h:473
@ ZYDIS_CPUFLAG_AC
Alignment check.
Definition: DecoderTypes.h:497
@ ZYDIS_CPUFLAG_VM
Virtual 8086 mode flag.
Definition: DecoderTypes.h:493
@ ZYDIS_CPUFLAG_IOPL
I/O privilege level flag.
Definition: DecoderTypes.h:481
@ ZYDIS_CPUFLAG_RF
Resume flag.
Definition: DecoderTypes.h:489
@ ZYDIS_CPUFLAG_REQUIRED_BITS
The minimum number of bits required to represent all values of this enum.
Definition: DecoderTypes.h:534
@ ZYDIS_CPUFLAG_AF
Adjust flag.
Definition: DecoderTypes.h:453
@ ZYDIS_CPUFLAG_NT
Nested task flag.
Definition: DecoderTypes.h:485
@ ZYDIS_CPUFLAG_ID
Able to use CPUID instruction.
Definition: DecoderTypes.h:509
ZydisCPUFlagAction_
Defines the ZydisCPUFlagAction enum.
Definition: DecoderTypes.h:541
@ ZYDIS_CPUFLAG_ACTION_SET_0
The CPU flag is set to 0 (write).
Definition: DecoderTypes.h:561
@ ZYDIS_CPUFLAG_ACTION_NONE
The CPU flag is not touched by the instruction.
Definition: DecoderTypes.h:545
@ ZYDIS_CPUFLAG_ACTION_UNDEFINED
The CPU flag is undefined (write).
Definition: DecoderTypes.h:569
@ ZYDIS_CPUFLAG_ACTION_MODIFIED
The CPU flag is modified (write).
Definition: DecoderTypes.h:557
@ ZYDIS_CPUFLAG_ACTION_SET_1
The CPU flag is set to 1 (write).
Definition: DecoderTypes.h:565
@ ZYDIS_CPUFLAG_ACTION_TESTED
The CPU flag is tested (read).
Definition: DecoderTypes.h:549
@ ZYDIS_CPUFLAG_ACTION_TESTED_MODIFIED
The CPU flag is tested and modified afterwards (read-write).
Definition: DecoderTypes.h:553
@ ZYDIS_CPUFLAG_ACTION_MAX_VALUE
Maximum value of this enum.
Definition: DecoderTypes.h:574
@ ZYDIS_CPUFLAG_ACTION_REQUIRED_BITS
The minimum number of bits required to represent all values of this enum.
Definition: DecoderTypes.h:578
ZydisMemoryOperandType_
Defines the ZydisMemoryOperandType enum.
Definition: DecoderTypes.h:57
@ ZYDIS_MEMOP_TYPE_AGEN
The memory operand is only used for address-generation.
Definition: DecoderTypes.h:67
@ ZYDIS_MEMOP_TYPE_MEM
Normal memory operand.
Definition: DecoderTypes.h:62
@ ZYDIS_MEMOP_TYPE_MIB
A memory operand using SIB addressing form, where the index register is not used in address calculati...
Definition: DecoderTypes.h:72
@ ZYDIS_MEMOP_TYPE_REQUIRED_BITS
The minimum number of bits required to represent all values of this enum.
Definition: DecoderTypes.h:81
@ ZYDIS_MEMOP_TYPE_INVALID
Definition: DecoderTypes.h:58
@ ZYDIS_MEMOP_TYPE_MAX_VALUE
Maximum value of this enum.
Definition: DecoderTypes.h:77
ZydisRoundingMode_
Defines the ZydisRoundingMode enum.
Definition: DecoderTypes.h:760
@ ZYDIS_ROUNDING_MODE_REQUIRED_BITS
The minimum number of bits required to represent all values of this enum.
Definition: DecoderTypes.h:786
@ ZYDIS_ROUNDING_MODE_INVALID
Definition: DecoderTypes.h:761
@ ZYDIS_ROUNDING_MODE_RN
Round to nearest.
Definition: DecoderTypes.h:765
@ ZYDIS_ROUNDING_MODE_RZ
Round towards zero.
Definition: DecoderTypes.h:777
@ ZYDIS_ROUNDING_MODE_RD
Round down.
Definition: DecoderTypes.h:769
@ ZYDIS_ROUNDING_MODE_MAX_VALUE
Maximum value of this enum.
Definition: DecoderTypes.h:782
@ ZYDIS_ROUNDING_MODE_RU
Round up.
Definition: DecoderTypes.h:773
enum ZydisSwizzleMode_ ZydisSwizzleMode
Defines the ZydisSwizzleMode enum.
enum ZydisMemoryOperandType_ ZydisMemoryOperandType
Defines the ZydisMemoryOperandType enum.
ZyanU64 ZydisInstructionAttributes
Defines the ZydisInstructionAttributes data-type.
Definition: DecoderTypes.h:226
ZydisConversionMode_
Defines the ZydisConversionMode enum.
Definition: DecoderTypes.h:826
@ ZYDIS_CONVERSION_MODE_SINT8
Definition: DecoderTypes.h:829
@ ZYDIS_CONVERSION_MODE_REQUIRED_BITS
The minimum number of bits required to represent all values of this enum.
Definition: DecoderTypes.h:841
@ ZYDIS_CONVERSION_MODE_INVALID
Definition: DecoderTypes.h:827
@ ZYDIS_CONVERSION_MODE_MAX_VALUE
Maximum value of this enum.
Definition: DecoderTypes.h:837
@ ZYDIS_CONVERSION_MODE_SINT16
Definition: DecoderTypes.h:831
@ ZYDIS_CONVERSION_MODE_UINT16
Definition: DecoderTypes.h:832
@ ZYDIS_CONVERSION_MODE_FLOAT16
Definition: DecoderTypes.h:828
@ ZYDIS_CONVERSION_MODE_UINT8
Definition: DecoderTypes.h:830
struct ZydisDecodedOperand_ ZydisDecodedOperand
Defines the ZydisDecodedOperand struct.
enum ZydisBroadcastMode_ ZydisBroadcastMode
Defines the ZydisBroadcastMode enum.
enum ZydisPrefixType_ ZydisPrefixType
Defines the ZydisPrefixType enum.
struct ZydisDecodedInstruction_ ZydisDecodedInstruction
Defines the ZydisDecodedInstruction struct.
ZydisMaskMode_
Defines the ZydisMaskMode enum.
Definition: DecoderTypes.h:686
@ ZYDIS_MASK_MODE_DISABLED
Masking is disabled for the current instruction (K0 register is used).
Definition: DecoderTypes.h:691
@ ZYDIS_MASK_MODE_INVALID
Definition: DecoderTypes.h:687
@ ZYDIS_MASK_MODE_CONTROL
The embedded mask register is used as a control-mask (element selector).
Definition: DecoderTypes.h:703
@ ZYDIS_MASK_MODE_MAX_VALUE
Maximum value of this enum.
Definition: DecoderTypes.h:712
@ ZYDIS_MASK_MODE_MERGING
The embedded mask register is used as a merge-mask.
Definition: DecoderTypes.h:695
@ ZYDIS_MASK_MODE_CONTROL_ZEROING
The embedded mask register is used as a zeroing control-mask (element selector).
Definition: DecoderTypes.h:707
@ ZYDIS_MASK_MODE_ZEROING
The embedded mask register is used as a zero-mask.
Definition: DecoderTypes.h:699
@ ZYDIS_MASK_MODE_REQUIRED_BITS
The minimum number of bits required to represent all values of this enum.
Definition: DecoderTypes.h:716
enum ZydisBranchType_ ZydisBranchType
Defines the ZydisBranchType enum.
ZydisSwizzleMode_
Defines the ZydisSwizzleMode enum.
Definition: DecoderTypes.h:797
@ ZYDIS_SWIZZLE_MODE_MAX_VALUE
Maximum value of this enum.
Definition: DecoderTypes.h:811
@ ZYDIS_SWIZZLE_MODE_DACB
Definition: DecoderTypes.h:802
@ ZYDIS_SWIZZLE_MODE_BADC
Definition: DecoderTypes.h:801
@ ZYDIS_SWIZZLE_MODE_AAAA
Definition: DecoderTypes.h:803
@ ZYDIS_SWIZZLE_MODE_REQUIRED_BITS
The minimum number of bits required to represent all values of this enum.
Definition: DecoderTypes.h:815
@ ZYDIS_SWIZZLE_MODE_DCBA
Definition: DecoderTypes.h:799
@ ZYDIS_SWIZZLE_MODE_BBBB
Definition: DecoderTypes.h:804
@ ZYDIS_SWIZZLE_MODE_CCCC
Definition: DecoderTypes.h:805
@ ZYDIS_SWIZZLE_MODE_DDDD
Definition: DecoderTypes.h:806
@ ZYDIS_SWIZZLE_MODE_CDAB
Definition: DecoderTypes.h:800
@ ZYDIS_SWIZZLE_MODE_INVALID
Definition: DecoderTypes.h:798
enum ZydisCPUFlagAction_ ZydisCPUFlagAction
Defines the ZydisCPUFlagAction enum.
enum ZydisCPUFlag_ ZydisCPUFlag
Defines the ZydisCPUFlag enum.
enum ZydisISAExt_ ZydisISAExt
Defines the ZydisISAExt enum.
enum ZydisISASet_ ZydisISASet
Defines the ZydisISASet enum.
enum ZydisInstructionCategory_ ZydisInstructionCategory
Defines the ZydisInstructionCategory enum.
enum ZydisMnemonic_ ZydisMnemonic
Defines the ZydisMnemonic enum.
enum ZydisRegister_ ZydisRegister
Defines the ZydisRegister enum.
Mnemonic constant definitions and helper functions.
Utility functions and constants for registers.
Defines decoder/encoder-shared macros and types.
enum ZydisOperandEncoding_ ZydisOperandEncoding
Defines the ZydisOperandEncoding enum.
#define ZYDIS_MAX_INSTRUCTION_LENGTH
Definition: SharedTypes.h:49
enum ZydisInstructionEncoding_ ZydisInstructionEncoding
Defines the ZydisInstructionEncoding enum.
#define ZYDIS_MAX_OPERAND_COUNT
Definition: SharedTypes.h:50
enum ZydisOperandType_ ZydisOperandType
Defines the ZydisOperandType enum.
enum ZydisOperandVisibility_ ZydisOperandVisibility
Defines the ZydisOperandVisibility enum.
ZyanU8 ZydisOperandActions
Defines the ZydisOperandActions data-type.
Definition: SharedTypes.h:397
enum ZydisOpcodeMap_ ZydisOpcodeMap
Defines the ZydisOpcodeMap enum.
enum ZydisElementType_ ZydisElementType
Defines the ZydisElementType enum.
ZyanU16 ZydisElementSize
Defines the ZydisElementSize datatype.
Definition: SharedTypes.h:189
enum ZydisMachineMode_ ZydisMachineMode
Defines the ZydisMachineMode enum.
Information about accessed CPU flags.
Definition: DecoderTypes.h:949
ZydisCPUFlagAction action
The CPU-flag action.
Definition: DecoderTypes.h:956
Contains info about the AVX broadcast.
Definition: DecoderTypes.h:985
ZydisBroadcastMode mode
The AVX broadcast-mode.
Definition: DecoderTypes.h:996
ZyanBool is_static
Signals, if the broadcast is a static broadcast.
Definition: DecoderTypes.h:992
Contains info about the AVX data-conversion (KNC only).
Definition: DecoderTypes.h:1022
ZydisConversionMode mode
The AVX data-conversion mode.
Definition: DecoderTypes.h:1026
Info about the embedded writemask-register (AVX-512 and KNC only).
Definition: DecoderTypes.h:971
ZydisRegister reg
The mask register.
Definition: DecoderTypes.h:979
ZydisMaskMode mode
The masking mode.
Definition: DecoderTypes.h:975
Contains info about the AVX rounding.
Definition: DecoderTypes.h:1002
ZydisRoundingMode mode
The AVX rounding-mode.
Definition: DecoderTypes.h:1006
Contains info about the AVX register-swizzle (KNC only).
Definition: DecoderTypes.h:1012
ZydisSwizzleMode mode
The AVX register-swizzle mode.
Definition: DecoderTypes.h:1016
Extended info for AVX instructions.
Definition: DecoderTypes.h:962
struct ZydisDecodedInstruction_::ZydisDecodedInstructionAvx_::ZydisDecodedInstructionAvxConversion_ conversion
struct ZydisDecodedInstruction_::ZydisDecodedInstructionAvx_::ZydisDecodedInstructionAvxMask_ mask
struct ZydisDecodedInstruction_::ZydisDecodedInstructionAvx_::ZydisDecodedInstructionAvxSwizzle_ swizzle
struct ZydisDecodedInstruction_::ZydisDecodedInstructionAvx_::ZydisDecodedInstructionAvxBroadcast_ broadcast
ZyanBool has_eviction_hint
Signals, if the instruction has a memory-eviction-hint (KNC only).
Definition: DecoderTypes.h:1036
struct ZydisDecodedInstruction_::ZydisDecodedInstructionAvx_::ZydisDecodedInstructionAvxRounding_ rounding
ZyanU16 vector_length
The AVX vector-length.
Definition: DecoderTypes.h:966
ZyanBool has_sae
Signals, if the SAE (suppress-all-exceptions) functionality is enabled for the instruction.
Definition: DecoderTypes.h:1032
Meta info.
Definition: DecoderTypes.h:1043
ZydisBranchType branch_type
The branch type.
Definition: DecoderTypes.h:1059
ZydisISASet isa_set
The ISA-set.
Definition: DecoderTypes.h:1051
ZydisISAExt isa_ext
The ISA-set extension.
Definition: DecoderTypes.h:1055
ZydisExceptionClass exception_class
The exception class.
Definition: DecoderTypes.h:1063
ZydisInstructionCategory category
The instruction category.
Definition: DecoderTypes.h:1047
Detailed info about the ModRM byte.
Definition: DecoderTypes.h:1347
ZyanU8 rm
Register specifier or opcode-extension.
Definition: DecoderTypes.h:1359
ZyanU8 mod
The addressing mode.
Definition: DecoderTypes.h:1351
ZyanU8 offset
The offset of the ModRM byte, relative to the beginning of the instruction, in bytes.
Definition: DecoderTypes.h:1364
ZyanU8 reg
Register specifier or opcode-extension.
Definition: DecoderTypes.h:1355
Detailed info about displacement-bytes.
Definition: DecoderTypes.h:1393
ZyanU8 size
The physical displacement size, in bits.
Definition: DecoderTypes.h:1401
ZyanI64 value
The displacement value.
Definition: DecoderTypes.h:1397
ZyanU8 offset
The offset of the displacement data, relative to the beginning of the instruction,...
Definition: DecoderTypes.h:1407
Detailed info about the EVEX prefix.
Definition: DecoderTypes.h:1219
ZyanU8 R2
High-16 register specifier modifier (inverted).
Definition: DecoderTypes.h:1235
ZyanU8 L2
Vector-length specifier or rounding-control (most significant bit).
Definition: DecoderTypes.h:1260
ZyanU8 X
Extension of the SIB.index/vidx field (inverted).
Definition: DecoderTypes.h:1227
ZyanU8 L
Vector-length specifier or rounding-control (least significant bit).
Definition: DecoderTypes.h:1264
ZyanU8 aaa
Embedded opmask register specifier.
Definition: DecoderTypes.h:1276
ZyanU8 offset
The offset of the first evex byte, relative to the beginning of the instruction, in bytes.
Definition: DecoderTypes.h:1281
ZyanU8 R
Extension of the ModRM.reg field (inverted).
Definition: DecoderTypes.h:1223
ZyanU8 pp
Compressed legacy prefix.
Definition: DecoderTypes.h:1252
ZyanU8 mm
Opcode-map specifier.
Definition: DecoderTypes.h:1239
ZyanU8 W
64-bit operand-size promotion or opcode-extension.
Definition: DecoderTypes.h:1243
ZyanU8 b
Broadcast/RC/SAE context.
Definition: DecoderTypes.h:1268
ZyanU8 vvvv
NDS/NDD (non-destructive-source/destination) register specifier (inverted).
Definition: DecoderTypes.h:1248
ZyanU8 V2
High-16 NDS/VIDX register specifier.
Definition: DecoderTypes.h:1272
ZyanU8 B
Extension of the ModRM.rm or SIB.base field (inverted).
Definition: DecoderTypes.h:1231
Detailed info about immediate-bytes.
Definition: DecoderTypes.h:1413
ZyanU8 size
The physical immediate size, in bits.
Definition: DecoderTypes.h:1434
ZyanBool is_relative
Signals, if the immediate value contains a relative offset.
Definition: DecoderTypes.h:1422
ZyanBool is_signed
Signals, if the immediate value is signed.
Definition: DecoderTypes.h:1417
ZyanU8 offset
The offset of the immediate data, relative to the beginning of the instruction, in bytes.
Definition: DecoderTypes.h:1439
union ZydisDecodedInstruction_::ZydisDecodedInstructionRaw_::ZydisDecodedInstructionRawImm_::ZydisDecodedInstructionRawImmValue_ value
Detailed info about the MVEX prefix.
Definition: DecoderTypes.h:1287
ZyanU8 SSS
Swizzle/broadcast/up-convert/down-convert/static-rounding controls.
Definition: DecoderTypes.h:1328
ZyanU8 R2
High-16 register specifier modifier (inverted).
Definition: DecoderTypes.h:1303
ZyanU8 kkk
Embedded opmask register specifier.
Definition: DecoderTypes.h:1336
ZyanU8 X
Extension of the SIB.index/vidx field (inverted).
Definition: DecoderTypes.h:1295
ZyanU8 offset
The offset of the first mvex byte, relative to the beginning of the instruction, in bytes.
Definition: DecoderTypes.h:1341
ZyanU8 R
Extension of the ModRM.reg field (inverted).
Definition: DecoderTypes.h:1291
ZyanU8 pp
Compressed legacy prefix.
Definition: DecoderTypes.h:1320
ZyanU8 W
64-bit operand-size promotion or opcode-extension.
Definition: DecoderTypes.h:1311
ZyanU8 mmmm
Opcode-map specifier.
Definition: DecoderTypes.h:1307
ZyanU8 vvvv
NDS/NDD (non-destructive-source/destination) register specifier (inverted).
Definition: DecoderTypes.h:1316
ZyanU8 V2
High-16 NDS/VIDX register specifier.
Definition: DecoderTypes.h:1332
ZyanU8 E
Non-temporal/eviction hint.
Definition: DecoderTypes.h:1324
ZyanU8 B
Extension of the ModRM.rm or SIB.base field (inverted).
Definition: DecoderTypes.h:1299
Detailed info about the legacy prefixes (including REX).
Definition: DecoderTypes.h:1079
ZydisPrefixType type
The prefix type.
Definition: DecoderTypes.h:1083
Detailed info about the REX prefix.
Definition: DecoderTypes.h:1093
ZyanU8 X
Extension of the SIB.index field.
Definition: DecoderTypes.h:1105
ZyanU8 offset
The offset of the effective REX byte, relative to the beginning of the instruction,...
Definition: DecoderTypes.h:1121
ZyanU8 R
Extension of the ModRM.reg field.
Definition: DecoderTypes.h:1101
ZyanU8 W
64-bit operand-size promotion.
Definition: DecoderTypes.h:1097
ZyanU8 B
Extension of the ModRM.rm, SIB.base, or opcode.reg field.
Definition: DecoderTypes.h:1109
Detailed info about the SIB byte.
Definition: DecoderTypes.h:1370
ZyanU8 base
The base-register specifier.
Definition: DecoderTypes.h:1382
ZyanU8 offset
The offset of the SIB byte, relative to the beginning of the instruction, in bytes.
Definition: DecoderTypes.h:1387
ZyanU8 index
The index-register specifier.
Definition: DecoderTypes.h:1378
Detailed info about the VEX prefix.
Definition: DecoderTypes.h:1171
ZyanU8 m_mmmm
Opcode-map specifier.
Definition: DecoderTypes.h:1187
ZyanU8 X
Extension of the SIB.index field (inverted).
Definition: DecoderTypes.h:1179
ZyanU8 size
The size of the VEX prefix, in bytes.
Definition: DecoderTypes.h:1213
ZyanU8 L
Vector-length specifier.
Definition: DecoderTypes.h:1200
ZyanU8 offset
The offset of the first VEX byte, relative to the beginning of the instruction, in bytes.
Definition: DecoderTypes.h:1209
ZyanU8 R
Extension of the ModRM.reg field (inverted).
Definition: DecoderTypes.h:1175
ZyanU8 pp
Compressed legacy prefix.
Definition: DecoderTypes.h:1204
ZyanU8 W
64-bit operand-size promotion or opcode-extension.
Definition: DecoderTypes.h:1191
ZyanU8 vvvv
NDS/NDD (non-destructive-source/destination) register specifier (inverted).
Definition: DecoderTypes.h:1196
ZyanU8 B
Extension of the ModRM.rm, SIB.base, or opcode.reg field (inverted).
Definition: DecoderTypes.h:1183
Detailed info about the XOP prefix.
Definition: DecoderTypes.h:1127
ZyanU8 m_mmmm
Opcode-map specifier.
Definition: DecoderTypes.h:1143
ZyanU8 X
Extension of the SIB.index field (inverted).
Definition: DecoderTypes.h:1135
ZyanU8 L
Vector-length specifier.
Definition: DecoderTypes.h:1156
ZyanU8 offset
The offset of the first xop byte, relative to the beginning of the instruction, in bytes.
Definition: DecoderTypes.h:1165
ZyanU8 R
Extension of the ModRM.reg field (inverted).
Definition: DecoderTypes.h:1131
ZyanU8 pp
Compressed legacy prefix.
Definition: DecoderTypes.h:1160
ZyanU8 W
64-bit operand-size promotion or opcode-extension.
Definition: DecoderTypes.h:1147
ZyanU8 vvvv
NDS/NDD (non-destructive-source/destination) register specifier (inverted).
Definition: DecoderTypes.h:1152
ZyanU8 B
Extension of the ModRM.rm, SIB.base, or opcode.reg field (inverted).
Definition: DecoderTypes.h:1139
Detailed info about different instruction-parts like ModRM, SIB or encoding-prefixes.
Definition: DecoderTypes.h:1070
struct ZydisDecodedInstruction_::ZydisDecodedInstructionRaw_::ZydisDecodedInstructionRawMvex_ mvex
struct ZydisDecodedInstruction_::ZydisDecodedInstructionRaw_::ZydisDecodedInstructionRawDisp_ disp
struct ZydisDecodedInstruction_::ZydisDecodedInstructionRaw_::ZydisDecodedInstructionModRm_ modrm
struct ZydisDecodedInstruction_::ZydisDecodedInstructionRaw_::ZydisDecodedInstructionRawXop_ xop
ZyanU8 prefix_count
The number of legacy prefixes.
Definition: DecoderTypes.h:1074
struct ZydisDecodedInstruction_::ZydisDecodedInstructionRaw_::ZydisDecodedInstructionRawImm_ imm[2]
struct ZydisDecodedInstruction_::ZydisDecodedInstructionRaw_::ZydisDecodedInstructionRawRex_ rex
struct ZydisDecodedInstruction_::ZydisDecodedInstructionRaw_::ZydisDecodedInstructionRawEvex_ evex
struct ZydisDecodedInstruction_::ZydisDecodedInstructionRaw_::ZydisDecodedInstructionRawPrefixes_ prefixes[ZYDIS_MAX_INSTRUCTION_LENGTH]
struct ZydisDecodedInstruction_::ZydisDecodedInstructionRaw_::ZydisDecodedInstructionRawSib_ sib
struct ZydisDecodedInstruction_::ZydisDecodedInstructionRaw_::ZydisDecodedInstructionRawVex_ vex
Defines the ZydisDecodedInstruction struct.
Definition: DecoderTypes.h:892
ZydisMnemonic mnemonic
The instruction-mnemonic.
Definition: DecoderTypes.h:900
ZyanU8 operand_width
The effective operand width.
Definition: DecoderTypes.h:924
struct ZydisDecodedInstruction_::ZydisDecodedInstructionMeta_ meta
struct ZydisDecodedInstruction_::ZydisDecodedInstructionAccessedFlags_ accessed_flags[ZYDIS_CPUFLAG_MAX_VALUE+1]
ZyanU8 opcode
The instruction-opcode.
Definition: DecoderTypes.h:916
ZydisMachineMode machine_mode
The machine mode used to decode this instruction.
Definition: DecoderTypes.h:896
ZydisOpcodeMap opcode_map
The opcode-map.
Definition: DecoderTypes.h:912
ZydisInstructionEncoding encoding
The instruction-encoding (LEGACY, 3DNOW, VEX, EVEX, XOP).
Definition: DecoderTypes.h:908
ZydisInstructionAttributes attributes
Instruction attributes.
Definition: DecoderTypes.h:944
ZyanU8 stack_width
The stack width.
Definition: DecoderTypes.h:920
struct ZydisDecodedInstruction_::ZydisDecodedInstructionAvx_ avx
ZydisDecodedOperand operands[ZYDIS_MAX_OPERAND_COUNT]
Detailed info for all instruction operands.
Definition: DecoderTypes.h:940
ZyanU8 address_width
The effective address width.
Definition: DecoderTypes.h:928
ZyanU8 operand_count
The number of instruction-operands.
Definition: DecoderTypes.h:932
struct ZydisDecodedInstruction_::ZydisDecodedInstructionRaw_ raw
ZyanU8 length
The length of the decoded instruction.
Definition: DecoderTypes.h:904
Extended info for immediate-operands.
Definition: DecoderTypes.h:192
ZyanBool is_relative
Signals, if the immediate value contains a relative offset.
Definition: DecoderTypes.h:201
ZyanBool is_signed
Signals, if the immediate value is signed.
Definition: DecoderTypes.h:196
union ZydisDecodedOperand_::ZydisDecodedOperandImm_::ZydisDecodedOperandImmValue_ value
Extended info for memory-operands with displacement.
Definition: DecoderTypes.h:169
ZyanI64 value
The displacement value.
Definition: DecoderTypes.h:177
ZyanBool has_displacement
Signals, if the displacement value is used.
Definition: DecoderTypes.h:173
Extended info for memory-operands.
Definition: DecoderTypes.h:144
ZydisMemoryOperandType type
The type of the memory operand.
Definition: DecoderTypes.h:148
ZydisRegister segment
The segment register.
Definition: DecoderTypes.h:152
ZydisRegister base
The base register.
Definition: DecoderTypes.h:156
struct ZydisDecodedOperand_::ZydisDecodedOperandMem_::ZydisDecodedOperandMemDisp_ disp
ZyanU8 scale
The scale factor.
Definition: DecoderTypes.h:164
ZydisRegister index
The index register.
Definition: DecoderTypes.h:160
Extended info for pointer-operands.
Definition: DecoderTypes.h:184
ZyanU32 offset
Definition: DecoderTypes.h:186
ZyanU16 segment
Definition: DecoderTypes.h:185
Extended info for register-operands.
Definition: DecoderTypes.h:133
ZydisRegister value
The register value.
Definition: DecoderTypes.h:137
Defines the ZydisDecodedOperand struct.
Definition: DecoderTypes.h:92
ZyanU16 size
The logical size of the operand (in bits).
Definition: DecoderTypes.h:116
ZyanU16 element_count
The number of elements.
Definition: DecoderTypes.h:128
ZydisOperandActions actions
The operand-actions.
Definition: DecoderTypes.h:108
ZydisOperandEncoding encoding
The operand-encoding.
Definition: DecoderTypes.h:112
ZydisElementType element_type
The element-type.
Definition: DecoderTypes.h:120
ZydisOperandVisibility visibility
The visibility of the operand.
Definition: DecoderTypes.h:104
struct ZydisDecodedOperand_::ZydisDecodedOperandImm_ imm
struct ZydisDecodedOperand_::ZydisDecodedOperandReg_ reg
struct ZydisDecodedOperand_::ZydisDecodedOperandMem_ mem
ZydisOperandType type
The type of the operand.
Definition: DecoderTypes.h:100
ZyanU8 id
The operand-id.
Definition: DecoderTypes.h:96
ZydisElementSize element_size
The size of a single element.
Definition: DecoderTypes.h:124
struct ZydisDecodedOperand_::ZydisDecodedOperandPtr_ ptr
The immediate value.
Definition: DecoderTypes.h:206