Rizin
unix-like reverse engineering framework and cli tools
asm_null.c File Reference
#include <stdio.h>
#include <string.h>
#include <rz_types.h>
#include <rz_lib.h>
#include <rz_asm.h>

Go to the source code of this file.

Functions

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

Variables

RzAsmPlugin rz_asm_plugin_null
 
RZ_API RzLibStruct rizin_plugin
 

Function Documentation

◆ assemble()

static int assemble ( RzAsm a,
RzAsmOp op,
const char *  buf 
)
static

Definition at line 17 of file asm_null.c.

17  {
18  return 0;
19 }

◆ disassemble()

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

Definition at line 10 of file asm_null.c.

10  {
11  int opsz = 0;
12  rz_strbuf_set(&op->buf_asm, "");
13  op->size = opsz;
14  return opsz;
15 }
RZ_API const char * rz_strbuf_set(RzStrBuf *sb, const char *s)
Definition: strbuf.c:153
Definition: dis.c:32

References rz_strbuf_set().

Variable Documentation

◆ rizin_plugin

RZ_API RzLibStruct rizin_plugin
Initial value:
= {
.type = RZ_LIB_TYPE_ASM,
}
RzAsmPlugin rz_asm_plugin_null
Definition: asm_null.c:21
@ 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 35 of file asm_null.c.

◆ rz_asm_plugin_null

RzAsmPlugin rz_asm_plugin_null
Initial value:
= {
.name = "null",
.author = "pancake",
.version = "1.0.0",
.arch = "null",
.license = "MIT",
.bits = 16 | 32 | 64,
.endian = RZ_SYS_ENDIAN_NONE,
.desc = "no disassemble",
.disassemble = &disassemble,
.assemble = &assemble
}
static int disassemble(RzAsm *a, RzAsmOp *op, const ut8 *buf, int len)
Definition: asm_null.c:10
static int assemble(RzAsm *a, RzAsmOp *op, const char *buf)
Definition: asm_null.c:17
#define RZ_SYS_ENDIAN_NONE
Definition: rz_types.h:525

Definition at line 21 of file asm_null.c.