25 lines
612 B
C
25 lines
612 B
C
// SPDX-FileCopyrightText: 2019 deroad <wargio@libero.it>
|
|
// SPDX-License-Identifier: LGPL-3.0-only
|
|
#ifndef ASM_AMD_29K_INTERNAL_H
|
|
#define ASM_AMD_29K_INTERNAL_H
|
|
|
|
typedef void (*amd29k_decode)(amd29k_instr_t *instruction, const unsigned char *buffer);
|
|
typedef void (*amd29k_encode)(amd29k_instr_t *instruction, char *assembly);
|
|
|
|
typedef struct amd29k_instruction_s {
|
|
const char *cpu;
|
|
const char *mnemonic;
|
|
ut64 op_type;
|
|
ut8 mask;
|
|
amd29k_decode decode;
|
|
amd29k_encode encode;
|
|
} amd29k_instruction_t;
|
|
|
|
enum amd29k_types {
|
|
AMD29K_TYPE_UNK = 0,
|
|
AMD29K_TYPE_REG,
|
|
AMD29K_TYPE_IMM,
|
|
AMD29K_TYPE_JMP,
|
|
};
|
|
|
|
#endif
|