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;
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 */
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
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
struct m68k_info m68k_info
bool M68K_getInstruction(csh ud, const uint8_t *code, size_t code_len, MCInst *instr, uint16_t *size, uint64_t address, void *info)
RzBinInfo * info(RzBinFile *bf)
Definition: bin_ne.c:86
size_t csh
Definition: capstone.h:71
voidpf void uLong size
Definition: ioapi.h:138
unsigned short uint16_t
Definition: sftypes.h:30
unsigned long uint64_t
Definition: sftypes.h:28
unsigned char uint8_t
Definition: sftypes.h:31
Definition: MCInst.h:88
Definition: inftree9.h:24
The M68K instruction and it's operands.
Definition: m68k.h:210
unsigned int address_mask
MCInst * inst
uint8_t regs_read_count
unsigned int ir
uint16_t regs_read[20]
uint64_t baseAddress
uint16_t regs_write[20]
unsigned int type
uint8_t groups_count
unsigned int pc
size_t code_len
const uint8_t * code
uint8_t groups[8]
cs_m68k extension
uint8_t regs_write_count