Rizin
unix-like reverse engineering framework and cli tools
vle.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: 2017-2021 deroad <wargio@libero.it>
2 // SPDX-License-Identifier: LGPL-3.0-only
3 
4 #ifndef LIB_PPCVLE
5 #define LIB_PPCVLE
6 #include <rz_types.h>
7 
8 #define VLE_DEFAULTS 0
9 #define VLE_INTERNAL_PPC 1
10 
11 #define TYPE_NONE 0
12 #define TYPE_REG 1
13 #define TYPE_IMM 2
14 #define TYPE_MEM 3
15 #define TYPE_JMP 4
16 #define TYPE_CR 5
17 
18 typedef struct {
19  const ut8 *end;
20  const ut8 *pos;
23 } vle_handle;
24 
25 typedef struct {
28 } vle_field_t;
29 
30 typedef struct {
31  const char *name;
36  int cond;
37 } vle_t;
38 
39 int vle_init(vle_handle *handle, const ut8 *buffer, const ut32 size);
42 void vle_free(vle_t *instr);
43 void vle_snprint(char *str, int size, ut32 addr, vle_t *instr);
44 
45 #endif
const aarch64_field fields[]
Definition: aarch64-opc.c:205
static mcore_handle handle
Definition: asm_mcore.c:8
uint16_t ut16
uint32_t ut32
voidpf void uLong size
Definition: ioapi.h:138
uint8_t ut8
Definition: lh5801.h:11
Definition: buffer.h:15
Definition: getopt.h:84
ut16 type
Definition: vle.h:27
ut32 value
Definition: vle.h:26
Definition: vle.h:18
const ut8 * pos
Definition: vle.h:20
const ut8 * end
Definition: vle.h:19
ut32 options
Definition: vle.h:22
ut16 inc
Definition: vle.h:21
Definition: vle.h:30
const char * name
Definition: vle.h:31
ut16 size
Definition: vle.h:34
ut16 n
Definition: vle.h:33
int cond
Definition: vle.h:36
ut32 analysis_op
Definition: vle.h:35
vle_t * vle_next(vle_handle *handle)
Definition: vle.c:889
int vle_init(vle_handle *handle, const ut8 *buffer, const ut32 size)
Definition: vle.c:870
int vle_option(vle_handle *handle, ut32 option)
Definition: vle.c:881
void vle_snprint(char *str, int size, ut32 addr, vle_t *instr)
Definition: vle.c:915
void vle_free(vle_t *instr)
Definition: vle.c:911
static int addr
Definition: z80asm.c:58