Rizin
unix-like reverse engineering framework and cli tools
amd29k.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_H
4 #define ASM_AMD_29K_H
5 
6 #include <stdint.h>
7 #include <rz_types.h>
8 
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
12 
13 #define CPU_29000 "29000"
14 #define CPU_29050 "29050"
15 
16 typedef struct amd29k_instr_s {
17  const char *mnemonic;
20  char type[6];
22 
23 bool amd29k_instr_decode(const ut8 *buffer, const ut32 buffer_size, amd29k_instr_t *instruction, const char *cpu);
24 void amd29k_instr_print(char *string, int string_size, ut64 address, amd29k_instr_t *instruction);
25 
28 
29 #ifdef __cplusplus
30 }
31 #endif
32 
33 #endif /* ASM_AMD_29K_H */
struct amd29k_instr_s amd29k_instr_t
bool amd29k_instr_decode(const ut8 *buffer, const ut32 buffer_size, amd29k_instr_t *instruction, const char *cpu)
Definition: amd29k.c:435
bool amd29k_instr_is_ret(amd29k_instr_t *instruction)
Definition: amd29k.c:473
ut64 amd29k_instr_jump(ut64 address, amd29k_instr_t *instruction)
Definition: amd29k.c:480
void amd29k_instr_print(char *string, int string_size, ut64 address, amd29k_instr_t *instruction)
Definition: amd29k.c:501
static ut32 cpu[32]
Definition: analysis_or1k.c:21
uint32_t ut32
uint8_t ut8
Definition: lh5801.h:11
const char * mnemonic
Definition: amd29k.h:17
ut64 op_type
Definition: amd29k.h:18
char type[6]
Definition: amd29k.h:20
Definition: buffer.h:15
ut64(WINAPI *w32_GetEnabledXStateFeatures)()
#define buffer_size(buffer)