LLDB mainline
Public Attributes | List of all members
x86::InstructionOpcodeAndModrm Struct Reference

These are the three values deciding instruction control flow kind. More...

Public Attributes

uint8_t primary_opcode
 
uint8_t opcode_len
 
uint8_t modrm
 

Detailed Description

These are the three values deciding instruction control flow kind.

InstructionLengthDecode function decodes an instruction and get this struct.

primary_opcode Primary opcode of the instruction. For one-byte opcode instruction, it's the first byte after prefix. For two- and three-byte opcodes, it's the second byte.

opcode_len The length of opcode in bytes. Valid opcode lengths are 1, 2, or 3.

modrm ModR/M byte of the instruction. Bits[7:6] indicate MOD. Bits[5:3] specify a register and R/M bits[2:0] may contain a register or specify an addressing mode, depending on MOD.

Definition at line 111 of file DisassemblerLLVMC.cpp.

Member Data Documentation

◆ modrm

uint8_t x86::InstructionOpcodeAndModrm::modrm

◆ opcode_len

uint8_t x86::InstructionOpcodeAndModrm::opcode_len

◆ primary_opcode

uint8_t x86::InstructionOpcodeAndModrm::primary_opcode

The documentation for this struct was generated from the following file: