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
CodeAssembler
methods. - 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 PTR
size hint - dword_
bcst - Creates a broadcast memory operand with a
DWORD BCST
size hint - dword_
ptr - Creates a memory operand with a
DWORD PTR
size hint - fword_
ptr - Creates a memory operand with an
FWORD PTR
size hint - mmword_
ptr - Creates a memory operand with an
MMWORD PTR
size hint - oword_
ptr - Creates a memory operand with an
OWORD PTR
size hint - ptr
- Creates a memory operand with no size hint
- qword_
bcst - Creates a broadcast memory operand with a
QWORD BCST
size hint - qword_
ptr - Creates a memory operand with a
QWORD PTR
size hint - tbyte_
ptr - Creates a memory operand with a
TBYTE PTR
size hint - tword_
ptr - Creates a memory operand with a
TWORD PTR
size hint - word_
bcst - Creates a broadcast memory operand with a
WORD BCST
size hint - word_
ptr - Creates a memory operand with a
WORD PTR
size hint - xmmword_
ptr - Creates a memory operand with an
XMMWORD PTR
size hint - ymmword_
ptr - Creates a memory operand with a
YMMWORD PTR
size hint - zmmword_
ptr - Creates a memory operand with a
ZMMWORD PTR
size hint