Rizin
unix-like reverse engineering framework and cli tools
M68KDisassembler.h
Go to the documentation of this file.
1
/* Capstone Disassembly Engine */
2
/* M68K Backend by Daniel Collin <daniel@collin.com> 2015-2016 */
3
4
#ifndef CS_M68KDISASSEMBLER_H
5
#define CS_M68KDISASSEMBLER_H
6
7
#include "../../MCInst.h"
8
9
/* Private, For internal use only */
10
typedef
struct
m68k_info
{
11
const
uint8_t
*
code
;
12
size_t
code_len
;
13
uint64_t
baseAddress
;
14
MCInst
*
inst
;
15
unsigned
int
pc
;
/* program counter */
16
unsigned
int
ir
;
/* instruction register */
17
unsigned
int
type
;
18
unsigned
int
address_mask
;
/* Address mask to simulate address lines */
19
cs_m68k
extension
;
20
uint16_t
regs_read
[20];
// list of implicit registers read by this insn
21
uint8_t
regs_read_count
;
// number of implicit registers read by this insn
22
uint16_t
regs_write
[20];
// list of implicit registers modified by this insn
23
uint8_t
regs_write_count
;
// number of implicit registers modified by this insn
24
uint8_t
groups
[8];
25
uint8_t
groups_count
;
26
}
m68k_info
;
27
28
bool
M68K_getInstruction
(
csh
ud,
const
uint8_t
*
code
,
size_t
code_len,
MCInst
* instr,
uint16_t
*
size
,
uint64_t
address,
void
*
info
);
29
30
#endif
m68k_info
struct m68k_info m68k_info
M68K_getInstruction
bool M68K_getInstruction(csh ud, const uint8_t *code, size_t code_len, MCInst *instr, uint16_t *size, uint64_t address, void *info)
Definition:
M68KDisassembler.c:3601
info
RzBinInfo * info(RzBinFile *bf)
Definition:
bin_ne.c:86
csh
size_t csh
Definition:
capstone.h:71
size
voidpf void uLong size
Definition:
ioapi.h:138
uint16_t
unsigned short uint16_t
Definition:
sftypes.h:30
uint64_t
unsigned long uint64_t
Definition:
sftypes.h:28
uint8_t
unsigned char uint8_t
Definition:
sftypes.h:31
MCInst
Definition:
MCInst.h:88
code
Definition:
inftree9.h:24
cs_m68k
The M68K instruction and it's operands.
Definition:
m68k.h:210
m68k_info
Definition:
M68KDisassembler.h:10
m68k_info::address_mask
unsigned int address_mask
Definition:
M68KDisassembler.h:18
m68k_info::inst
MCInst * inst
Definition:
M68KDisassembler.h:14
m68k_info::regs_read_count
uint8_t regs_read_count
Definition:
M68KDisassembler.h:21
m68k_info::ir
unsigned int ir
Definition:
M68KDisassembler.h:16
m68k_info::regs_read
uint16_t regs_read[20]
Definition:
M68KDisassembler.h:20
m68k_info::baseAddress
uint64_t baseAddress
Definition:
M68KDisassembler.h:13
m68k_info::regs_write
uint16_t regs_write[20]
Definition:
M68KDisassembler.h:22
m68k_info::type
unsigned int type
Definition:
M68KDisassembler.h:17
m68k_info::groups_count
uint8_t groups_count
Definition:
M68KDisassembler.h:25
m68k_info::pc
unsigned int pc
Definition:
M68KDisassembler.h:15
m68k_info::code_len
size_t code_len
Definition:
M68KDisassembler.h:12
m68k_info::code
const uint8_t * code
Definition:
M68KDisassembler.h:11
m68k_info::groups
uint8_t groups[8]
Definition:
M68KDisassembler.h:24
m68k_info::extension
cs_m68k extension
Definition:
M68KDisassembler.h:19
m68k_info::regs_write_count
uint8_t regs_write_count
Definition:
M68KDisassembler.h:23
subprojects
capstone-bundled
arch
M68K
M68KDisassembler.h
Generated by
1.9.1