Expand description
Easier creating of instructions (eg. a.mov(eax, ecx)) than using Instruction::with*() functions.
This requires the code_asm feature to use (not enabled by default). Add it to your Cargo.toml:
[dependencies.iced-x86]
version = "1.21.0"
features = ["code_asm"]See CodeAssembler docs for usage.
Re-exports§
Modules§
- asm_
traits - registers
- This module contains all registers that can be used.
Structs§
- AsmMemory
Operand - A memory operand passed to
CodeAssemblermethods. - AsmRegister8
- All 8-bit general purpose registers.
- AsmRegister16
- All 16-bit general purpose registers.
- AsmRegister32
- All 32-bit general purpose registers.
- AsmRegister64
- All 64-bit general purpose registers.
- AsmRegister
Bnd - All bound registers.
- AsmRegister
Cr - All control registers.
- AsmRegister
Dr - All debug registers.
- AsmRegisterK
- All opmask registers.
- AsmRegister
Mm - All MMX registers.
- AsmRegister
Segment - All segment registers.
- AsmRegister
St - All FPU registers.
- AsmRegister
Tmm - All tile registers.
- AsmRegister
Tr - All test registers.
- AsmRegister
Xmm - All 128-bit vector registers (XMM).
- AsmRegister
Ymm - All 256-bit vector registers (YMM).
- AsmRegister
Zmm - All 512-bit vector registers (ZMM).
- Code
Assembler - Creates and encodes instructions. It’s easier to use this struct than to call
Instruction::with*()functions. - Code
Assembler Result - Result of assembling the instructions
- Code
Label - A label created by
CodeAssembler
Functions§
- bcst
- Creates a broadcast memory operand with no size hint
- byte_
ptr - Creates a memory operand with a
BYTE PTRsize hint - dword_
bcst - Creates a broadcast memory operand with a
DWORD BCSTsize hint - dword_
ptr - Creates a memory operand with a
DWORD PTRsize hint - fword_
ptr - Creates a memory operand with an
FWORD PTRsize hint - mmword_
ptr - Creates a memory operand with an
MMWORD PTRsize hint - oword_
ptr - Creates a memory operand with an
OWORD PTRsize hint - ptr
- Creates a memory operand with no size hint
- qword_
bcst - Creates a broadcast memory operand with a
QWORD BCSTsize hint - qword_
ptr - Creates a memory operand with a
QWORD PTRsize hint - tbyte_
ptr - Creates a memory operand with a
TBYTE PTRsize hint - tword_
ptr - Creates a memory operand with a
TWORD PTRsize hint - word_
bcst - Creates a broadcast memory operand with a
WORD BCSTsize hint - word_
ptr - Creates a memory operand with a
WORD PTRsize hint - xmmword_
ptr - Creates a memory operand with an
XMMWORD PTRsize hint - ymmword_
ptr - Creates a memory operand with a
YMMWORD PTRsize hint - zmmword_
ptr - Creates a memory operand with a
ZMMWORD PTRsize hint