Daniel Collin | 2ee675c | 2015-08-03 18:45:08 +0200 | [diff] [blame] | 1 | /* Capstone Disassembly Engine */ |
Daniel Collin | 09e4c3c | 2015-10-03 10:00:00 +0200 | [diff] [blame] | 2 | /* M68K Backend by Daniel Collin <daniel@collin.com> 2015 */ |
Daniel Collin | 2ee675c | 2015-08-03 18:45:08 +0200 | [diff] [blame] | 3 | |
Nguyen Anh Quynh | 7d5badd | 2015-10-04 21:45:50 +0800 | [diff] [blame] | 4 | #ifndef CS_M68KINSTPRINTER_H |
| 5 | #define CS_M68KINSTPRINTER_H |
Daniel Collin | 2ee675c | 2015-08-03 18:45:08 +0200 | [diff] [blame] | 6 | |
tandasat | 45e5eab | 2016-05-11 21:48:32 -0700 | [diff] [blame^] | 7 | #if !defined(_MSC_VER) || !defined(_KERNEL_MODE) |
Daniel Collin | 2ee675c | 2015-08-03 18:45:08 +0200 | [diff] [blame] | 8 | #include <stdint.h> |
tandasat | 45e5eab | 2016-05-11 21:48:32 -0700 | [diff] [blame^] | 9 | #endif |
Daniel Collin | 2ee675c | 2015-08-03 18:45:08 +0200 | [diff] [blame] | 10 | |
| 11 | #include "capstone/capstone.h" |
| 12 | #include "../../MCRegisterInfo.h" |
| 13 | #include "../../MCInst.h" |
| 14 | |
Daniel Collin | e8a4e98 | 2015-10-04 14:22:58 +0200 | [diff] [blame] | 15 | struct SStream; |
| 16 | |
Daniel Collin | 2ee675c | 2015-08-03 18:45:08 +0200 | [diff] [blame] | 17 | void M68K_init(MCRegisterInfo *MRI); |
| 18 | |
Daniel Collin | e8a4e98 | 2015-10-04 14:22:58 +0200 | [diff] [blame] | 19 | void M68K_printInst(MCInst* MI, struct SStream* O, void* Info); |
Daniel Collin | 2ee675c | 2015-08-03 18:45:08 +0200 | [diff] [blame] | 20 | const char* M68K_reg_name(csh handle, unsigned int reg); |
| 21 | void M68K_get_insn_id(cs_struct* h, cs_insn* insn, unsigned int id); |
| 22 | const char *M68K_insn_name(csh handle, unsigned int id); |
| 23 | const char* M68K_group_name(csh handle, unsigned int id); |
| 24 | void M68K_post_printer(csh handle, cs_insn* flat_insn, char* insn_asm, MCInst* mci); |
| 25 | |
| 26 | #endif |
| 27 | |