Rizin
unix-like reverse engineering framework and cli tools
amd29k_internal.h
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: 2019 deroad <wargio@libero.it>
2
// SPDX-License-Identifier: LGPL-3.0-only
3
#ifndef ASM_AMD_29K_INTERNAL_H
4
#define ASM_AMD_29K_INTERNAL_H
5
6
typedef
void (*
amd29k_decode
)(
amd29k_instr_t
*
instruction
,
const
unsigned
char
*
buffer
);
7
typedef
void (*
amd29k_encode
)(
amd29k_instr_t
*
instruction
,
char
*assembly);
8
9
typedef
struct
amd29k_instruction_s
{
10
const
char
*
cpu
;
11
const
char
*
mnemonic
;
12
ut64
op_type
;
13
ut8
mask
;
14
amd29k_decode
decode
;
15
amd29k_encode
encode
;
16
}
amd29k_instruction_t
;
17
18
enum
amd29k_types
{
19
AMD29K_TYPE_UNK
= 0,
20
AMD29K_TYPE_REG
,
21
AMD29K_TYPE_IMM
,
22
AMD29K_TYPE_JMP
,
23
};
24
25
#endif
amd29k_types
amd29k_types
Definition:
amd29k_internal.h:18
AMD29K_TYPE_IMM
@ AMD29K_TYPE_IMM
Definition:
amd29k_internal.h:21
AMD29K_TYPE_UNK
@ AMD29K_TYPE_UNK
Definition:
amd29k_internal.h:19
AMD29K_TYPE_JMP
@ AMD29K_TYPE_JMP
Definition:
amd29k_internal.h:22
AMD29K_TYPE_REG
@ AMD29K_TYPE_REG
Definition:
amd29k_internal.h:20
amd29k_encode
void(* amd29k_encode)(amd29k_instr_t *instruction, char *assembly)
Definition:
amd29k_internal.h:7
amd29k_decode
void(* amd29k_decode)(amd29k_instr_t *instruction, const unsigned char *buffer)
Definition:
amd29k_internal.h:6
amd29k_instruction_t
struct amd29k_instruction_s amd29k_instruction_t
buffer
struct buffer buffer
ut8
uint8_t ut8
Definition:
lh5801.h:11
amd29k_instr_s
Definition:
amd29k.h:16
amd29k_instruction_s
Definition:
amd29k_internal.h:9
amd29k_instruction_s::decode
amd29k_decode decode
Definition:
amd29k_internal.h:14
amd29k_instruction_s::cpu
const char * cpu
Definition:
amd29k_internal.h:10
amd29k_instruction_s::mask
ut8 mask
Definition:
amd29k_internal.h:13
amd29k_instruction_s::mnemonic
const char * mnemonic
Definition:
amd29k_internal.h:11
amd29k_instruction_s::op_type
ut64 op_type
Definition:
amd29k_internal.h:12
amd29k_instruction_s::encode
amd29k_encode encode
Definition:
amd29k_internal.h:15
instruction
Definition:
dis.h:12
ut64
ut64(WINAPI *w32_GetEnabledXStateFeatures)()
librz
asm
arch
amd29k
amd29k_internal.h
Generated by
1.9.1