Rizin
unix-like reverse engineering framework and cli tools
asm_i4004.c
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: 2014-2020 condret <condr3t@protonmail.com>
2 // SPDX-FileCopyrightText: 2014-2020 eagleoflqj <liumeo@pku.edu.cn>
3 // SPDX-License-Identifier: LGPL-3.0-only
4 
5 #include <rz_types.h>
6 #include <rz_util.h>
7 #include <rz_asm.h>
8 #include <rz_lib.h>
9 #include "../arch/i4004/i4004dis.c"
10 
11 static int disassemble(RzAsm *a, RzAsmOp *op, const ut8 *buf, int len) {
12  return i4004dis(op, buf, len);
13 }
14 
16  .name = "i4004",
17  .desc = "Intel 4004 microprocessor",
18  .arch = "i4004",
19  .license = "LGPL3",
20  .bits = 4,
21  .endian = RZ_SYS_ENDIAN_NONE,
22  .disassemble = &disassemble
23 };
24 
25 #ifndef RZ_PLUGIN_INCORE
28  .data = &rz_asm_plugin_i4004,
30 };
31 #endif
size_t len
Definition: 6502dis.c:15
RZ_API RzLibStruct rizin_plugin
Definition: asm_i4004.c:26
static int disassemble(RzAsm *a, RzAsmOp *op, const ut8 *buf, int len)
Definition: asm_i4004.c:11
RzAsmPlugin rz_asm_plugin_i4004
Definition: asm_i4004.c:15
#define RZ_API
static int i4004dis(RzAsmOp *op, const ut8 *buf, int len)
Definition: i4004dis.c:61
voidpf void * buf
Definition: ioapi.h:138
uint8_t ut8
Definition: lh5801.h:11
@ RZ_LIB_TYPE_ASM
Definition: rz_lib.h:72
#define RZ_SYS_ENDIAN_NONE
Definition: rz_types.h:525
#define RZ_VERSION
Definition: rz_version.h:8
#define a(i)
Definition: sha256.c:41
const char * name
Definition: rz_asm.h:130
const char * version
Definition: rz_asm.h:133
Definition: dis.c:32