X86 Encoder Decoder
 All Files Groups Pages
Printing (disassembling) Instructions

There are two primary instruction printing functions: #xed_format_generic() and #xed_format_context() . Both emit disassembly to a user specified buffer. #xed_format_generic() takes all the required information in a pointer to a structure of type #xed_print_info_t. In contrast, #xed_format_context(), takes its arguments individually. Both versions can take a void* context argument that is passed to an optional symbolic disassembly callback function.

The disassembly dialect (order of operands and formatting) is specified by the #xed_syntax_enum_t parameter. For finer control on certain aspects of disassembly, the parameter to #xed_format_generic() has a field specifing lower level formatting options (#xed_format_options_t).