1 /* radare - LGPL - Copyright 2017 - wargio */ 2 3 #ifndef LIBPS_H 4 #define LIBPS_H 5 #include <r_types.h> 6 7 typedef struct { 8 ut32 value; 9 ut16 type; 10 } ppcps_field_t; 11 12 typedef struct { 13 const char* name; 14 ppcps_field_t operands[6]; 15 int n; 16 int op; 17 ut32 anal_op; 18 } ppcps_t; 19 20 bool libps_decode(ut32 data, ppcps_t* ps); 21 void libps_snprint(char* str, int size, ut64 addr, ppcps_t* instr); 22 23 #endif /* LIBPS_H */ 24 25