You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

60 lines
1.9 KiB

/*BEGIN_LEGAL
Copyright 2002-2019 Intel Corporation.
This software and the related documents are Intel copyrighted materials, and your
use of them is governed by the express license under which they were provided to
you ("License"). Unless the License provides otherwise, you may not use, modify,
copy, publish, distribute, disclose or transmit this software or the related
documents without Intel's prior written permission.
This software and the related documents are provided as is, with no express or
implied warranties, other than those that are expressly stated in the License.
END_LEGAL */
/// @file xed-format-options.h
#ifndef XED_FORMAT_OPTIONS_H
# define XED_FORMAT_OPTIONS_H
#include "xed-types.h"
/// @name Formatting options
//@{
/// Options for the disasembly formatting functions. Set once during
/// initialization by a calling #xed_format_set_options
/// @ingroup PRINT
typedef struct {
/// by default, XED prints the hex address before any symbolic name for
/// branch targets. If set to zero, then XED will not print the hex
/// address before a valid symbolic name.
unsigned int hex_address_before_symbolic_name;
/// Simple XML output format for the Intel syntax disassembly.
unsigned int xml_a;
/// Include flags in the XML formatting (must also supply xml_a)
unsigned int xml_f;
/// omit unit scale "*1"
unsigned int omit_unit_scale;
/// do not sign extend signed immediates
unsigned int no_sign_extend_signed_immediates;
/// write-mask-with-curly-brackets, omit k0
unsigned int write_mask_curly_k0;
/// lowercase hexadecimal
xed_bool_t lowercase_hex;
} xed_format_options_t;
/// Optionally, customize the disassembly formatting options by passing
/// in a #xed_format_options_t structure.
/// @ingroup PRINT
XED_DLL_EXPORT void
xed_format_set_options(xed_format_options_t format_options);
//@}
#endif