Rizin
unix-like reverse engineering framework and cli tools
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "M68KInstPrinter.h"
#include "M68KDisassembler.h"
#include "../../cs_priv.h"
#include "../../utils.h"
#include "../../MCInst.h"
#include "../../MCInstrDesc.h"
#include "../../MCRegisterInfo.h"
Go to the source code of this file.
Macros | |
#define | m68k_sizeof_array(array) (int)(sizeof(array)/sizeof(array[0])) |
#define | m68k_min(a, b) (a < b) ? a : b |
Functions | |
static const char * | getRegName (m68k_reg reg) |
static void | printRegbitsRange (char *buffer, uint32_t data, const char *prefix) |
static void | registerBits (SStream *O, const cs_m68k_op *op) |
static void | registerPair (SStream *O, const cs_m68k_op *op) |
static void | printAddressingMode (SStream *O, unsigned int pc, const cs_m68k *inst, const cs_m68k_op *op) |
void | M68K_printInst (MCInst *MI, SStream *O, void *PrinterInfo) |
const char * | M68K_reg_name (csh handle, unsigned int reg) |
void | M68K_get_insn_id (cs_struct *h, cs_insn *insn, unsigned int id) |
const char * | M68K_insn_name (csh handle, unsigned int id) |
const char * | M68K_group_name (csh handle, unsigned int id) |
Variables | |
static const char * | s_spacing = " " |
static const char * | s_reg_names [] |
static const char * | s_instruction_names [] |
static name_map | group_name_maps [] |
#define m68k_sizeof_array | ( | array | ) | (int)(sizeof(array)/sizeof(array[0])) |
Definition at line 259 of file M68KInstPrinter.c.
Definition at line 75 of file M68KInstPrinter.c.
References int, reg, and s_reg_names.
Referenced by printAddressingMode().
Definition at line 379 of file M68KInstPrinter.c.
References ARR_SIZE, group_name_maps, id2name(), and NULL.
Definition at line 262 of file M68KInstPrinter.c.
References ext, MCInst::flat_insn, i, info(), M68K_CPU_SIZE_BYTE, M68K_CPU_SIZE_LONG, M68K_CPU_SIZE_NONE, M68K_CPU_SIZE_WORD, M68K_FPU_SIZE_DOUBLE, M68K_FPU_SIZE_EXTENDED, M68K_FPU_SIZE_NONE, M68K_FPU_SIZE_SINGLE, M68K_INS_CAS2, M68K_INS_INVALID, m68k_min, M68K_REG_D0, M68K_SIZE_TYPE_CPU, M68K_SIZE_TYPE_FPU, M68K_SIZE_TYPE_INVALID, m68k_sizeof_array, memcpy(), NULL, O, MCInst::Opcode, printAddressingMode(), s_instruction_names, s_reg_names, s_spacing, SStream_concat(), and SStream_concat0().
Referenced by M68K_getInstruction().
Definition at line 343 of file M68KInstPrinter.c.
References ARR_SIZE, int, NULL, reg, and s_reg_names.
|
static |
Definition at line 131 of file M68KInstPrinter.c.
References m68k_op_size::fpu_size, getRegName(), M68K_AM_ABSOLUTE_DATA_LONG, M68K_AM_ABSOLUTE_DATA_SHORT, M68K_AM_AREGI_INDEX_8_BIT_DISP, M68K_AM_AREGI_INDEX_BASE_DISP, M68K_AM_BRANCH_DISPLACEMENT, M68K_AM_IMMEDIATE, M68K_AM_MEMI_POST_INDEX, M68K_AM_MEMI_PRE_INDEX, M68K_AM_NONE, M68K_AM_PC_MEMI_POST_INDEX, M68K_AM_PC_MEMI_PRE_INDEX, M68K_AM_PCI_DISP, M68K_AM_PCI_INDEX_8_BIT_DISP, M68K_AM_PCI_INDEX_BASE_DISP, M68K_AM_REG_DIRECT_ADDR, M68K_AM_REG_DIRECT_DATA, M68K_AM_REGI_ADDR, M68K_AM_REGI_ADDR_DISP, M68K_AM_REGI_ADDR_POST_INC, M68K_AM_REGI_ADDR_PRE_DEC, M68K_FPU_SIZE_DOUBLE, M68K_FPU_SIZE_SINGLE, M68K_OP_REG, M68K_OP_REG_BITS, M68K_OP_REG_PAIR, M68K_REG_A0, M68K_REG_D0, M68K_REG_INVALID, M68K_SIZE_TYPE_FPU, O, cs_m68k::op_size, pc, registerBits(), registerPair(), s_reg_names, s_spacing, SStream_concat(), and m68k_op_size::type.
Referenced by M68K_printInst().
Definition at line 80 of file M68KInstPrinter.c.
References i, prefix, and sprintf.
Referenced by registerBits().
|
static |
Definition at line 106 of file M68KInstPrinter.c.
References O, printRegbitsRange(), and SStream_concat().
Referenced by printAddressingMode().
|
static |
Definition at line 125 of file M68KInstPrinter.c.
References O, s_reg_names, and SStream_concat().
Referenced by objdump-m68k::dump_op_ea(), and printAddressingMode().
|
static |
Definition at line 370 of file M68KInstPrinter.c.
Referenced by M68K_group_name().
|
static |
Definition at line 46 of file M68KInstPrinter.c.
Referenced by M68K_insn_name(), and M68K_printInst().
|
static |
Definition at line 33 of file M68KInstPrinter.c.
Referenced by getRegName(), M68K_printInst(), M68K_reg_name(), printAddressingMode(), and registerPair().
|
static |
Definition at line 31 of file M68KInstPrinter.c.
Referenced by M68K_printInst(), and printAddressingMode().