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
MOS65XX
MOS65XXModule.c
Go to the documentation of this file.
1
/* Capstone Disassembly Engine */
2
/* MOS65XX Backend by Sebastian Macke <sebastian@macke.de> 2018 */
3
4
#ifdef CAPSTONE_HAS_MOS65XX
5
6
#include "../../utils.h"
7
#include "../../MCRegisterInfo.h"
8
#include "
MOS65XXDisassembler.h
"
9
#include "
MOS65XXModule.h
"
10
11
cs_err
MOS65XX_global_init
(
cs_struct
*ud)
12
{
13
// verify if requested mode is valid
14
if
(ud->
mode
)
15
return
CS_ERR_MODE
;
16
17
ud->
printer
=
MOS65XX_printInst
;
18
ud->
printer_info
= NULL;
19
ud->
insn_id
=
MOS65XX_get_insn_id
;
20
ud->
insn_name
=
MOS65XX_insn_name
;
21
ud->
group_name
=
MOS65XX_group_name
;
22
ud->
disasm
=
MOS65XX_getInstruction
;
23
ud->
reg_name
=
MOS65XX_reg_name
;
24
25
return
CS_ERR_OK
;
26
}
27
28
cs_err
MOS65XX_option
(
cs_struct
*
handle
,
cs_opt_type
type
,
size_t
value
)
29
{
30
return
CS_ERR_OK
;
31
}
32
33
#endif
MOS65XX_getInstruction
bool MOS65XX_getInstruction(csh ud, const uint8_t *code, size_t code_len, MCInst *MI, uint16_t *size, uint64_t address, void *inst_info)
Definition:
MOS65XXDisassembler.c:509
cs_struct::mode
cs_mode mode
Definition:
cs_priv.h:53
cs_opt_type
cs_opt_type
Runtime option for the disassembled engine.
Definition:
capstone.h:169
MOS65XX_insn_name
const char * MOS65XX_insn_name(csh handle, unsigned int id)
Definition:
MOS65XXDisassembler.c:555
cs_struct::disasm
Disasm_t disasm
Definition:
cs_priv.h:56
MOS65XX_get_insn_id
void MOS65XX_get_insn_id(cs_struct *h, cs_insn *insn, unsigned int id)
Definition:
MOS65XXDisassembler.c:579
MOS65XX_option
cs_err MOS65XX_option(cs_struct *handle, cs_opt_type type, size_t value)
MOS65XX_reg_name
const char * MOS65XX_reg_name(csh handle, unsigned int reg)
Definition:
MOS65XXDisassembler.c:567
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
cs_struct::insn_name
GetName_t insn_name
Definition:
cs_priv.h:59
MOS65XX_global_init
cs_err MOS65XX_global_init(cs_struct *ud)
cs_struct::printer
Printer_t printer
Definition:
cs_priv.h:54
MOS65XXModule.h
MOS65XX_printInst
void MOS65XX_printInst(MCInst *MI, struct SStream *O, void *PrinterInfo)
Definition:
MOS65XXDisassembler.c:443
value
const char * value
Definition:
hpack_parser_table.cc:165
capstone.CS_ERR_MODE
CS_ERR_MODE
Definition:
third_party/bloaty/third_party/capstone/bindings/python/capstone/__init__.py:242
MOS65XXDisassembler.h
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
handle
static csh handle
Definition:
test_arm_regression.c:16
MOS65XX_group_name
const char * MOS65XX_group_name(csh handle, unsigned int id)
Definition:
MOS65XXDisassembler.c:586
asyncio_get_stats.type
type
Definition:
asyncio_get_stats.py:37
grpc
Author(s):
autogenerated on Thu Mar 13 2025 03:00:41