michael@0: #ifndef IA32_SETTINGS_H michael@0: #define IA32_SETTINGS_H michael@0: michael@0: #include "libdis.h" michael@0: michael@0: typedef struct { michael@0: /* options */ michael@0: unsigned char endian, /* 0 = big, 1 = little */ michael@0: wc_byte, /* wildcard byte */ michael@0: max_insn, /* max insn size */ michael@0: sz_addr, /* default address size */ michael@0: sz_oper, /* default operand size */ michael@0: sz_byte, /* # bits in byte */ michael@0: sz_word, /* # bytes in machine word */ michael@0: sz_dword; /* # bytes in machine dword */ michael@0: unsigned int id_sp_reg, /* id of stack pointer */ michael@0: id_fp_reg, /* id of frame pointer */ michael@0: id_ip_reg, /* id of instruction pointer */ michael@0: id_flag_reg, /* id of flags register */ michael@0: offset_gen_regs, /* start of general regs */ michael@0: offset_seg_regs, /* start of segment regs */ michael@0: offset_fpu_regs; /* start of floating point regs */ michael@0: /* user-controlled settings */ michael@0: enum x86_options options; michael@0: } ia32_settings_t; michael@0: michael@0: #endif