Skip to main content

Module encode

Module encode 

Source
Expand description

Instruction encoding: prefixes, REX, opcode, ModRM/SIB, displacement and immediate.

Structs§

Prefixes
Legacy prefixes contributed by lock, rep and friends.

Functions§

encode
indirect_inner
The register or memory operand behind an indirect branch target.
nop_bytes
The canonical multi-byte no-ops recommended by both vendors, indexed by length. Padding with these keeps alignment padding executable and cheap.
rel_expr
Extracts the operand expression a Rel slot refers to. A bare label parses as an immediate in Intel syntax and as a displacement-only memory operand in AT&T, so both spellings are accepted here.
segment_prefix