42 #define FCML_REND_MAX_BUFF_LEN 512 50 #define FCML_REND_FLAG_RENDER_CODE 0x00000001 52 #define FCML_REND_FLAG_HEX_IMM 0x00000002 54 #define FCML_REND_FLAG_RENDER_DEFAULT_SEG 0x00000004 56 #define FCML_REND_FLAG_HEX_DISPLACEMENT 0x00000008 58 #define FCML_REND_FLAG_COND_GROUP_1 0x00000010 60 #define FCML_REND_FLAG_COND_GROUP_2 0x00000020 62 #define FCML_REND_FLAG_COND_SHOW_CARRY 0x00000040 64 #define FCML_REND_FLAG_RENDER_SIB_HINT 0x00000080 66 #define FCML_REND_FLAG_RENDER_ABS_HINT 0x00000100 68 #define FCML_REND_FLAG_RENDER_REL_HINT 0x00000200 70 #define FCML_REND_FLAG_RENDER_INDIRECT_HINT 0x00000400 72 #define FCML_REND_FLAG_REP_PREFIX_GROUP_1 0x00000800 74 #define FCML_REND_FLAG_REP_PREFIX_GROUP_2 0x00001000 76 #define FCML_REND_FLAG_CODE_PADDING 0x00002000 78 #define FCML_REND_FLAG_MNEMONIC_PADDING 0x00004000 81 #define FCML_REND_FLAG_REMOVE_LEADING_ZEROS 0x00008000 84 #define FCML_REND_DEFAULT_FLAGS 0 86 #define FCML_REND_DEFAULT_CODE_PADDING 8 88 #define FCML_REND_DEFAULT_MNEMONIC_PADDING 8 117 fcml_char *buffer, fcml_usize buffer_len,
struct fcml_st_dialect fcml_st_dialect
Assembler dialect.
Definition: fcml_dialect.h:36
fcml_uint16_t prefered_code_padding
Preferred code padding in HEX bytes (2 characters on one byte.).
Definition: fcml_renderer.h:99
Handles Win32 DLL symbols importing/exporting.
Structures and functions declarations related to FCML disassembler.
Renderer configuration.
Definition: fcml_renderer.h:93
struct fcml_st_render_config fcml_st_render_config
Renderer configuration.
Reusable disassembler result holder.
Definition: fcml_disassembler.h:267
fcml_uint16_t prefered_mnemonic_padding
Preferred mnemonic padding in characters.
Definition: fcml_renderer.h:97
LIB_EXPORT fcml_ceh_error LIB_CALL fcml_fn_render(const fcml_st_dialect *dialect, const fcml_st_render_config *config, fcml_char *buffer, fcml_usize buffer_len, const fcml_st_disassembler_result *result)
Renders the disassembled instruction into its textual representation.
fcml_uint32_t render_flags
Flags which allows to control rendering process.
Definition: fcml_renderer.h:95
Structures and functions related to dialects.
Global error handling related declarations.
fcml_uint16_t fcml_ceh_error
All error codes should be held in variables of this type.
Definition: fcml_errors.h:156