12 #define INSTRUCTION_BYTES 16 13 #define INSTRUCTION_OPERANDS 160 14 #define INSTRUCTION_MNEMONIC 32 20 #define INSTRUCTION_MAX_LEN 15 22 struct asm_instruction_pending {
23 uint8_t code[INSTRUCTION_MAX_LEN];
32 struct asm_instruction_pending pending;
35 struct asm_instruction {
41 void instruction_release(
struct asm_instruction *inst);
42 uint32 instruction_get_id(
struct asm_instruction *inst);
43 uintptr_t instruction_get_address(
struct asm_instruction *inst);
44 uint16 instruction_get_size(
struct asm_instruction *inst);
45 const uint8 *instruction_get_bytes(
struct asm_instruction *inst);
46 const char *instruction_get_mnemonic(
struct asm_instruction *inst);
47 const char *instruction_get_operands(
struct asm_instruction *inst);
48 void instruction_print(
struct asm_instruction *inst);
50 struct asm_handle *asm_initialize(cs_arch arch, cs_mode mode);
51 void asm_destroy(
struct asm_handle *asm_handle);
52 void asm_set_disassembly_flavor(
struct asm_handle *asm_handle,
int syntax);
53 int asm_get_arch(
struct asm_handle *asm_handle);
54 int asm_get_mode(
struct asm_handle *asm_handle);
55 bool asm_vbdisas(
struct asm_handle *asm_handle,
struct vbuffer_iterator *pos,
56 struct asm_instruction *_inst);
unsigned HAKA_16BIT_TYPE uint16
Definition: types.h:28
unsigned HAKA_32BIT_TYPE uint32
Definition: types.h:29
unsigned char uint8
Definition: types.h:27