Classes | Macros | Functions | Variables
test_ppc.c File Reference
#include <stdio.h>
#include <capstone/platform.h>
#include <capstone/capstone.h>
Include dependency graph for test_ppc.c:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  platform
 

Macros

#define PPC_CODE   "\x43\x20\x0c\x07\x41\x56\xff\x17\x80\x20\x00\x00\x80\x3f\x00\x00\x10\x43\x23\x0e\xd0\x44\x00\x80\x4c\x43\x22\x02\x2d\x03\x00\x80\x7c\x43\x20\x14\x7c\x43\x20\x93\x4f\x20\x00\x21\x4c\xc8\x00\x21\x40\x82\x00\x14"
 
#define PPC_CODE2   "\x10\x60\x2a\x10\x10\x64\x28\x88\x7c\x4a\x5d\x0f"
 

Functions

static const char * get_bc_name (int bc)
 
int main ()
 
static void print_insn_detail (cs_insn *ins)
 
static void print_string_hex (const char *comment, unsigned char *str, size_t len)
 
static void test ()
 

Variables

static csh handle
 

Macro Definition Documentation

◆ PPC_CODE

#define PPC_CODE   "\x43\x20\x0c\x07\x41\x56\xff\x17\x80\x20\x00\x00\x80\x3f\x00\x00\x10\x43\x23\x0e\xd0\x44\x00\x80\x4c\x43\x22\x02\x2d\x03\x00\x80\x7c\x43\x20\x14\x7c\x43\x20\x93\x4f\x20\x00\x21\x4c\xc8\x00\x21\x40\x82\x00\x14"

◆ PPC_CODE2

#define PPC_CODE2   "\x10\x60\x2a\x10\x10\x64\x28\x88\x7c\x4a\x5d\x0f"

Function Documentation

◆ get_bc_name()

static const char* get_bc_name ( int  bc)
static

Definition at line 31 of file test_ppc.c.

◆ main()

int main ( )

Definition at line 181 of file test_ppc.c.

◆ print_insn_detail()

static void print_insn_detail ( cs_insn *  ins)
static

Definition at line 60 of file test_ppc.c.

◆ print_string_hex()

static void print_string_hex ( const char *  comment,
unsigned char *  str,
size_t  len 
)
static

Definition at line 19 of file test_ppc.c.

◆ test()

static void test ( )
static

Definition at line 114 of file test_ppc.c.

Variable Documentation

◆ handle

csh handle
static

Definition at line 17 of file test_ppc.c.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:34