Decodes a single CPU instruction.
Unit
Syntax
ParametersAddress [in] A pointer to CPU instruction to decode.
Return valueDecoded CPU instruction at Address. Exact structure of TInstruction depends on current CPU. Please, refer to source code of the unit for your CPU (such as EDisAsmX8632.pas, EDisAsmX8664.pas, etc.).
RemarksThis is low-level disassembler routine which decodes a single CPU instruction and stores detailed information into TInstruction record. The decoded information includes prefixes, opcode, MOD/SIB bytes, displacement and immediate values - plus evaluated information: such as pointer to next instruction, flags, sizes of various data, etc. Exact structure of TInstruction depends on current CPU. Please, refer to source code of the unit for your CPU (such as EDisAsmX8632.pas, EDisAsmX8664.pas, etc.).
The decoded information can be used "as is" or it can be converted into textual representation by InstructionToString function.
See also
|