Rizin
unix-like reverse engineering framework and cli tools
|
#include <stdio.h>
#include <capstone/platform.h>
#include <capstone/capstone.h>
Go to the source code of this file.
Classes | |
struct | platform |
Macros | |
#define | SPARC_CODE "\x80\xa0\x40\x02\x85\xc2\x60\x08\x85\xe8\x20\x01\x81\xe8\x00\x00\x90\x10\x20\x01\xd5\xf6\x10\x16\x21\x00\x00\x0a\x86\x00\x40\x02\x01\x00\x00\x00\x12\xbf\xff\xff\x10\xbf\xff\xff\xa0\x02\x00\x09\x0d\xbf\xff\xff\xd4\x20\x60\x00\xd4\x4e\x00\x16\x2a\xc2\x80\x03" |
#define | SPARCV9_CODE "\x81\xa8\x0a\x24\x89\xa0\x10\x20\x89\xa0\x1a\x60\x89\xa0\x00\xe0" |
Functions | |
static void | print_string_hex (const char *comment, unsigned char *str, size_t len) |
static void | print_insn_detail (cs_insn *ins) |
static void | test () |
int | main () |
Variables | |
static csh | handle |
#define SPARC_CODE "\x80\xa0\x40\x02\x85\xc2\x60\x08\x85\xe8\x20\x01\x81\xe8\x00\x00\x90\x10\x20\x01\xd5\xf6\x10\x16\x21\x00\x00\x0a\x86\x00\x40\x02\x01\x00\x00\x00\x12\xbf\xff\xff\x10\xbf\xff\xff\xa0\x02\x00\x09\x0d\xbf\xff\xff\xd4\x20\x60\x00\xd4\x4e\x00\x16\x2a\xc2\x80\x03" |
#define SPARCV9_CODE "\x81\xa8\x0a\x24\x89\xa0\x10\x20\x89\xa0\x1a\x60\x89\xa0\x00\xe0" |
int main | ( | void | ) |
Definition at line 147 of file test_sparc.c.
References test().
|
static |
Definition at line 31 of file test_sparc.c.
References cs_reg_name(), handle, i, NULL, printf(), PRIx64, SPARC_OP_IMM, SPARC_OP_MEM, SPARC_OP_REG, and X86_REG_INVALID.
Referenced by test().
Definition at line 19 of file test_sparc.c.
References c, len, printf(), and cmd_descs_generate::str.
Referenced by test().
|
static |
Definition at line 79 of file test_sparc.c.
References arch, platform::comment, count, CS_ARCH_SPARC, cs_close(), cs_disasm(), cs_free(), CS_MODE_BIG_ENDIAN, CS_MODE_V9, cs_open(), CS_OPT_DETAIL, CS_OPT_ON, cs_option(), err, handle, i, platforms, print_insn_detail(), print_string_hex(), printf(), PRIx64, SPARC_CODE, and SPARCV9_CODE.
Referenced by main().
|
static |
Definition at line 17 of file test_sparc.c.
Referenced by print_insn_detail(), and test().