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.
69 lines
2.0 KiB
69 lines
2.0 KiB
3 years ago
|
/* BEGIN_LEGAL
|
||
|
|
||
|
Copyright (c) 2021 Intel Corporation
|
||
|
|
||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||
|
you may not use this file except in compliance with the License.
|
||
|
You may obtain a copy of the License at
|
||
|
|
||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||
|
|
||
|
Unless required by applicable law or agreed to in writing, software
|
||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
|
See the License for the specific language governing permissions and
|
||
|
limitations under 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;
|
||
|
|
||
|
/// Show negative memory displacements as
|
||
|
/// positive numbers.
|
||
|
xed_bool_t positive_memory_displacements;
|
||
|
|
||
|
} 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
|