Rizin
unix-like reverse engineering framework and cli tools
|
#include <stdio.h>
#include <stdarg.h>
#include <string.h>
#include <rz_types.h>
#include <rz_lib.h>
#include <rz_util.h>
#include <rz_asm.h>
#include "disas-asm.h"
#include "opcode/mips.h"
Go to the source code of this file.
Functions | |
int | mips_assemble (const char *str, ut64 pc, ut8 *out) |
static int | mips_buffer_read_memory (bfd_vma memaddr, bfd_byte *myaddr, unsigned int length, struct disassemble_info *info) |
static int | symbol_at_address (bfd_vma addr, struct disassemble_info *info) |
static void | memory_error_func (int status, bfd_vma memaddr, struct disassemble_info *info) |
static int | disassemble (struct rz_asm_t *a, struct rz_asm_op_t *op, const ut8 *buf, int len) |
static int | assemble (RzAsm *a, RzAsmOp *op, const char *str) |
Variables | |
static int | mips_mode = 0 |
static unsigned long | Offset = 0 |
static RzStrBuf * | buf_global = NULL |
static unsigned char | bytes [4] |
static char * | pre_cpu = NULL |
static char * | pre_features = NULL |
RzAsmPlugin | rz_asm_plugin_mips_gnu |
RZ_API RzLibStruct | rizin_plugin |
Definition at line 109 of file asm_mips_gnu.c.
References a, mips_assemble(), rz_strbuf_get(), cmd_descs_generate::str, and autogen_x86imm::tmp.
|
static |
Definition at line 48 of file asm_mips_gnu.c.
References a, disassemble_info::arch, BFD_ENDIAN_LITTLE, bfd_mach_mipsisa32, bfd_mach_mipsisa32r2, bfd_mach_mipsisa64, bfd_mach_mipsisa64r2, buf_global, disassemble_info::buffer, disassemble_info::buffer_length, disassemble_info::buffer_vma, bytes, CPU_LOONGSON_2F, disassemble_info::disassembler_options, disassemble_info::endian, disassemble_info::fprintf_func, free(), len, disassemble_info::mach, memcpy(), memory_error_func(), disassemble_info::memory_error_func, memset(), mips_buffer_read_memory(), mips_mode, Offset, pre_cpu, pre_features, disassemble_info::print_address_func, print_insn_big_mips(), print_insn_little_mips(), disassemble_info::read_memory_func, rz_str_casecmp(), rz_str_dup(), rz_str_new(), rz_strbuf_set(), disassemble_info::stream, symbol_at_address(), and disassemble_info::symbol_at_address_func.
|
static |
Definition at line 148 of file mipsasm.c.
References args, fn, free(), getreg(), i, imm, objdump-m68k::is_branch(), memset(), mips_i(), mips_j(), mips_r(), n, ops, opstr(), out, rd, rs, rz_str_replace_char(), s, snprintf, cmd_descs_generate::str, strdup(), autogen_x86imm::tmp, type, w0, w1, w2, and w3.
Referenced by assemble().
|
static |
Definition at line 25 of file asm_mips_gnu.c.
References bytes, delta, length, memcpy(), and Offset.
Referenced by disassemble().
|
static |
Definition at line 20 of file asm_mips_gnu.c.
Referenced by disassemble().
|
static |
Definition at line 21 of file asm_mips_gnu.c.
Referenced by disassemble(), and mips_buffer_read_memory().
|
static |
Definition at line 18 of file asm_mips_gnu.c.
Referenced by disassemble().
Definition at line 19 of file asm_mips_gnu.c.
Referenced by disassemble(), and mips_buffer_read_memory().
|
static |
Definition at line 22 of file asm_mips_gnu.c.
Referenced by disassemble().
|
static |
Definition at line 23 of file asm_mips_gnu.c.
Referenced by disassemble().
RZ_API RzLibStruct rizin_plugin |
Definition at line 135 of file asm_mips_gnu.c.
RzAsmPlugin rz_asm_plugin_mips_gnu |
Definition at line 123 of file asm_mips_gnu.c.