Rizin
unix-like reverse engineering framework and cli tools
asm_spc700.c File Reference
#include <rz_types.h>
#include <rz_util.h>
#include <rz_asm.h>
#include <rz_lib.h>
#include "../arch/spc700/spc700dis.c"

Go to the source code of this file.

Functions

static int disassemble (RzAsm *a, RzAsmOp *rz_op, const ut8 *buf, int len)
 

Variables

RzAsmPlugin rz_asm_plugin_spc700
 
RZ_API RzLibStruct rizin_plugin
 

Function Documentation

◆ disassemble()

static int disassemble ( RzAsm a,
RzAsmOp rz_op,
const ut8 buf,
int  len 
)
static

Definition at line 11 of file asm_spc700.c.

11  {
12  size_t dlen = spc700_disas(&rz_op->buf_asm, a->pc, buf, len);
13  rz_op->size = dlen;
14  return (int)dlen;
15 }
size_t len
Definition: 6502dis.c:15
voidpf void * buf
Definition: ioapi.h:138
#define a(i)
Definition: sha256.c:41
static size_t spc700_disas(RzStrBuf *out, ut64 pc, const ut8 *buf, size_t bufsz)
Definition: spc700dis.c:36
RzStrBuf buf_asm
Definition: rz_asm.h:72
int size
Definition: rz_asm.h:67

References a, rz_asm_op_t::buf_asm, len, rz_asm_op_t::size, and spc700_disas().

Variable Documentation

◆ rizin_plugin

RZ_API RzLibStruct rizin_plugin
Initial value:
= {
.type = RZ_LIB_TYPE_ASM,
}
RzAsmPlugin rz_asm_plugin_spc700
Definition: asm_spc700.c:17
@ RZ_LIB_TYPE_ASM
Definition: rz_lib.h:72
#define RZ_VERSION
Definition: rz_version.h:8
const char * version
Definition: rz_asm.h:133

Definition at line 28 of file asm_spc700.c.

◆ rz_asm_plugin_spc700

RzAsmPlugin rz_asm_plugin_spc700
Initial value:
= {
.name = "spc700",
.desc = "spc700, snes' sound-chip",
.arch = "spc700",
.license = "LGPL3",
.bits = 16,
.disassemble = &disassemble,
}
static int disassemble(RzAsm *a, RzAsmOp *rz_op, const ut8 *buf, int len)
Definition: asm_spc700.c:11
#define RZ_SYS_ENDIAN_LITTLE
Definition: rz_types.h:526

Definition at line 17 of file asm_spc700.c.