Rizin
unix-like reverse engineering framework and cli tools
|
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <string.h>
#include <stdarg.h>
#include <stdint.h>
#include "dis.h"
#include <rz_types.h>
#include <rz_util/rz_assert.h>
Go to the source code of this file.
Functions | |
static struct state * | get_state (void) |
static uint16_t | i2u16 (struct instruction *in) |
static void | decode_unknown (struct state *s, struct directive *d) |
static int | decode_fixed (struct state *s, struct directive *d) |
static char * | regname (int reg) |
static int | get_num (int num, int shift) |
static int | get_operand (struct state *s, struct directive *d) |
static int | decode_known (struct state *s, struct directive *d) |
static void | xap_decode (struct state *s, struct directive *d) |
static int | read_bin (struct state *s, struct directive *d) |
static struct directive * | next_inst (struct state *s) |
Variables | |
static struct state | _state |
Definition at line 95 of file dis.c.
References ADDR_MODE_RELATIVE, ADDR_MODE_X_RELATIVE, test-lz4-speed::branch, d, DATA_MODE_IMMEDIATE, DATA_MODE_INDEXED_X, get_operand(), i2u16(), setup::idx, imm, in, NULL, r, reg, regname(), s, snprintf, sprintf, and autogen_x86imm::tmp.
Referenced by xap_decode().
Definition at line 39 of file dis.c.
References d, i2u16(), in, printf(), and sprintf.
Referenced by xap_decode().
Definition at line 81 of file dis.c.
References num, shift(), and x.
Referenced by get_operand().
|
inlinestatic |
|
static |
Definition at line 23 of file dis.c.
References in.
Referenced by arch_xap_disasm(), decode_fixed(), decode_known(), and decode_unknown().
|
static |
Definition at line 71 of file dis.c.
References NULL, reg, REG_AH, REG_AL, REG_X, and REG_Y.
Referenced by _extract_regs(), decode_known(), esilbreak_reg_read(), esilbreak_reg_write(), exprmatchreg(), get_addr(), get_src_regname(), handle_var_stack_access(), i8051_reg_read(), i8051_reg_write(), internal_esil_reg_read(), internal_esil_reg_write(), internal_esil_reg_write_no_null(), is_reg_in_src(), is_used_like_arg(), mk_reg_str(), pic_midrange_reg_write(), rz_analysis_esil_reg_read(), rz_analysis_esil_reg_read_nocallback(), rz_analysis_extract_rarg(), rz_analysis_il_get_reg_op_trace(), rz_analysis_il_reg_trace_contains(), rz_analysis_var_addr(), rz_core_analysis_cc_print(), rz_core_analysis_set_reg(), rz_core_seek_to_register(), rz_debug_bochs_reg_read(), rz_serialize_analysis_var_load(), set_retval(), show_syscall(), and type_match().
Definition at line 448 of file dis.c.
References d, decode_fixed(), decode_known(), decode_unknown(), prefix, and s.
Referenced by arch_xap_disasm(), and xap_op().
|
static |
Definition at line 1 of file dis.c.
Referenced by get_state().