2015-10-09 14:25:10 +08:00
|
|
|
/* Capstone Disassembly Engine */
|
|
|
|
/* M68K Backend by Daniel Collin <daniel@collin.com> 2015 */
|
2015-08-04 00:45:08 +08:00
|
|
|
|
2015-10-04 21:45:50 +08:00
|
|
|
#ifndef CS_M68KDISASSEMBLER_H
|
|
|
|
#define CS_M68KDISASSEMBLER_H
|
2015-08-04 00:45:08 +08:00
|
|
|
|
|
|
|
#include "../../MCInst.h"
|
|
|
|
|
2015-10-05 16:26:30 +08:00
|
|
|
/* Private, For internal use only */
|
|
|
|
typedef struct m68k_info {
|
|
|
|
const uint8_t *code;
|
2015-10-08 13:34:25 +08:00
|
|
|
size_t code_len;
|
2015-10-05 16:26:30 +08:00
|
|
|
uint64_t baseAddress;
|
|
|
|
MCInst *inst;
|
2015-10-05 21:54:36 +08:00
|
|
|
unsigned int pc; /* program counter */
|
|
|
|
unsigned int ir; /* instruction register */
|
|
|
|
unsigned int type;
|
2015-10-05 16:26:30 +08:00
|
|
|
unsigned int address_mask; /* Address mask to simulate address lines */
|
2015-10-05 17:19:33 +08:00
|
|
|
cs_m68k extension;
|
2015-10-05 16:26:30 +08:00
|
|
|
} 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);
|
2015-08-04 00:45:08 +08:00
|
|
|
|
2015-10-04 21:45:50 +08:00
|
|
|
#endif
|