Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace 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
r
s
t
u
v
w
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
z
Classes
Class List
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
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
r
s
t
u
v
w
y
Enumerations
a
b
c
d
e
f
h
i
k
l
m
n
o
p
r
s
t
u
v
w
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Properties
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
Related Functions
:
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
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
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
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
k
l
m
n
o
p
r
s
t
u
v
w
x
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
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
grpc
third_party
bloaty
third_party
capstone
arch
M68K
M68KModule.c
Go to the documentation of this file.
1
/* Capstone Disassembly Engine */
2
/* M68K Backend by Daniel Collin <daniel@collin.com> 2015 */
3
4
#ifdef CAPSTONE_HAS_M68K
5
6
#include "../../utils.h"
7
#include "../../MCRegisterInfo.h"
8
#include "
M68KDisassembler.h
"
9
#include "
M68KInstPrinter.h
"
10
#include "
M68KModule.h
"
11
12
cs_err
M68K_global_init
(
cs_struct
*ud)
13
{
14
m68k_info
*info;
15
16
info =
cs_mem_malloc
(
sizeof
(
m68k_info
));
17
if
(!info) {
18
return
CS_ERR_MEM
;
19
}
20
21
ud->
printer
=
M68K_printInst
;
22
ud->
printer_info
= info;
23
ud->
getinsn_info
= NULL;
24
ud->
disasm
=
M68K_getInstruction
;
25
ud->
skipdata_size
= 2;
26
ud->
post_printer
= NULL;
27
28
ud->
reg_name
=
M68K_reg_name
;
29
ud->
insn_id
=
M68K_get_insn_id
;
30
ud->
insn_name
=
M68K_insn_name
;
31
ud->
group_name
=
M68K_group_name
;
32
33
return
CS_ERR_OK
;
34
}
35
36
cs_err
M68K_option
(
cs_struct
*
handle
,
cs_opt_type
type
,
size_t
value
)
37
{
38
return
CS_ERR_OK
;
39
}
40
41
#endif
42
cs_mem_malloc
cs_malloc_t cs_mem_malloc
Definition:
cs.c:368
M68K_printInst
void M68K_printInst(MCInst *MI, SStream *O, void *PrinterInfo)
Definition:
M68KInstPrinter.c:262
cs_opt_type
cs_opt_type
Runtime option for the disassembled engine.
Definition:
capstone.h:169
cs_struct::disasm
Disasm_t disasm
Definition:
cs_priv.h:56
M68KDisassembler.h
M68K_get_insn_id
void M68K_get_insn_id(cs_struct *h, cs_insn *insn, unsigned int id)
Definition:
M68KInstPrinter.c:355
M68K_reg_name
const char * M68K_reg_name(csh handle, unsigned int reg)
Definition:
M68KInstPrinter.c:343
cs_struct
Definition:
cs_priv.h:51
cs_struct::printer_info
void * printer_info
Definition:
cs_priv.h:55
capstone.CS_ERR_OK
CS_ERR_OK
Definition:
third_party/bloaty/third_party/capstone/bindings/python/capstone/__init__.py:237
capstone.CS_ERR_MEM
CS_ERR_MEM
Definition:
third_party/bloaty/third_party/capstone/bindings/python/capstone/__init__.py:238
m68k_info
Definition:
M68KDisassembler.h:10
cs_struct::insn_name
GetName_t insn_name
Definition:
cs_priv.h:59
cs_struct::getinsn_info
void * getinsn_info
Definition:
cs_priv.h:57
cs_struct::printer
Printer_t printer
Definition:
cs_priv.h:54
M68K_option
cs_err M68K_option(cs_struct *handle, cs_opt_type type, size_t value)
M68K_global_init
cs_err M68K_global_init(cs_struct *ud)
value
const char * value
Definition:
hpack_parser_table.cc:165
cs_struct::skipdata_size
uint8_t skipdata_size
Definition:
cs_priv.h:71
cs_struct::insn_id
GetID_t insn_id
Definition:
cs_priv.h:61
cs_struct::group_name
GetName_t group_name
Definition:
cs_priv.h:60
cs_struct::reg_name
GetName_t reg_name
Definition:
cs_priv.h:58
cs_struct::post_printer
PostPrinter_t post_printer
Definition:
cs_priv.h:62
handle
static csh handle
Definition:
test_arm_regression.c:16
M68K_group_name
const char * M68K_group_name(csh handle, unsigned int id)
Definition:
M68KInstPrinter.c:379
asyncio_get_stats.type
type
Definition:
asyncio_get_stats.py:37
M68K_getInstruction
bool M68K_getInstruction(csh ud, const uint8_t *code, size_t code_len, MCInst *instr, uint16_t *size, uint64_t address, void *inst_info)
Definition:
M68KDisassembler.c:4047
M68KModule.h
M68KInstPrinter.h
M68K_insn_name
const char * M68K_insn_name(csh handle, unsigned int id)
Definition:
M68KInstPrinter.c:360
grpc
Author(s):
autogenerated on Thu Mar 13 2025 03:00:30