Rizin
unix-like reverse engineering framework and cli tools
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
p
r
s
t
u
v
w
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Enumerations
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
x
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
Enumerator
b
d
e
h
i
k
n
p
r
s
w
Properties
Events
Related Functions
Files
File List
File Members
All
$
.
[
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
[
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
$
.
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Events
Friends
Macros
Modules
Pages
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
15
RzAsmPlugin
rz_asm_plugin_i4004
= {
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
26
RZ_API
RzLibStruct
rizin_plugin
= {
27
.
type
=
RZ_LIB_TYPE_ASM
,
28
.data = &
rz_asm_plugin_i4004
,
29
.
version
=
RZ_VERSION
30
};
31
#endif
len
size_t len
Definition:
6502dis.c:15
rizin_plugin
RZ_API RzLibStruct rizin_plugin
Definition:
asm_i4004.c:26
disassemble
static int disassemble(RzAsm *a, RzAsmOp *op, const ut8 *buf, int len)
Definition:
asm_i4004.c:11
rz_asm_plugin_i4004
RzAsmPlugin rz_asm_plugin_i4004
Definition:
asm_i4004.c:15
RZ_API
#define RZ_API
Definition:
core_plugin_example.c:36
i4004dis
static int i4004dis(RzAsmOp *op, const ut8 *buf, int len)
Definition:
i4004dis.c:61
buf
voidpf void * buf
Definition:
ioapi.h:138
ut8
uint8_t ut8
Definition:
lh5801.h:11
rz_asm.h
rz_lib.h
RZ_LIB_TYPE_ASM
@ RZ_LIB_TYPE_ASM
Definition:
rz_lib.h:72
rz_types.h
RZ_SYS_ENDIAN_NONE
#define RZ_SYS_ENDIAN_NONE
Definition:
rz_types.h:525
rz_util.h
RZ_VERSION
#define RZ_VERSION
Definition:
rz_version.h:8
a
#define a(i)
Definition:
sha256.c:41
rz_asm_op_t
Definition:
rz_asm.h:66
rz_asm_plugin_t
Definition:
rz_asm.h:129
rz_asm_plugin_t::name
const char * name
Definition:
rz_asm.h:130
rz_asm_plugin_t::version
const char * version
Definition:
rz_asm.h:133
rz_asm_t
Definition:
rz_asm.h:98
rz_lib_struct_t
Definition:
rz_lib.h:57
rz_lib_struct_t::type
int type
Definition:
rz_lib.h:58
op
Definition:
dis.c:32
librz
asm
p
asm_i4004.c
Generated by
1.9.1