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

Go to the source code of this file.

Functions

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

Variables

RzAsmPlugin rz_asm_plugin_riscv
 
RZ_API RzLibStruct rizin_plugin
 

Function Documentation

◆ disassemble()

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

Definition at line 11 of file asm_riscv.c.

11  {
12  return op->size = riscv_dis(a, op, buf, len);
13 }
size_t len
Definition: 6502dis.c:15
voidpf void * buf
Definition: ioapi.h:138
static int riscv_dis(RzAsm *a, RzAsmOp *rop, const ut8 *buf, ut64 len)
Definition: riscv.c:318
#define a(i)
Definition: sha256.c:41
Definition: dis.c:32

References a, len, and riscv_dis().

Variable Documentation

◆ rizin_plugin

RZ_API RzLibStruct rizin_plugin
Initial value:
= {
.type = RZ_LIB_TYPE_ASM,
}
RzAsmPlugin rz_asm_plugin_riscv
Definition: asm_riscv.c:15
@ 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 26 of file asm_riscv.c.

◆ rz_asm_plugin_riscv

RzAsmPlugin rz_asm_plugin_riscv
Initial value:
= {
.name = "riscv",
.desc = "RISC-V",
.arch = "riscv",
.bits = 32 | 64,
.license = "GPL3",
.disassemble = &disassemble,
}
static int disassemble(RzAsm *a, RzAsmOp *op, const ut8 *buf, int len)
Definition: asm_riscv.c:11
#define RZ_SYS_ENDIAN_BIG
Definition: rz_types.h:527
#define RZ_SYS_ENDIAN_LITTLE
Definition: rz_types.h:526

Definition at line 15 of file asm_riscv.c.