Classes | Macros | Functions | Variables
test_mips.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <capstone/platform.h>
#include <capstone/capstone.h>
Include dependency graph for test_mips.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 MIPS_32R6   "\xec\x80\x00\x19\x7c\x43\x22\xa0"
 
#define MIPS_32R6M   "\x00\x07\x00\x07\x00\x11\x93\x7c\x01\x8c\x8b\x7c\x00\xc7\x48\xd0"
 
#define MIPS_64SD   "\x70\x00\xb2\xff"
 
#define MIPS_CODE   "\x0C\x10\x00\x97\x00\x00\x00\x00\x24\x02\x00\x0c\x8f\xa2\x00\x00\x34\x21\x34\x56"
 
#define MIPS_CODE2   "\x56\x34\x21\x34\xc2\x17\x01\x00"
 

Functions

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

◆ MIPS_32R6

#define MIPS_32R6   "\xec\x80\x00\x19\x7c\x43\x22\xa0"

◆ MIPS_32R6M

#define MIPS_32R6M   "\x00\x07\x00\x07\x00\x11\x93\x7c\x01\x8c\x8b\x7c\x00\xc7\x48\xd0"

◆ MIPS_64SD

#define MIPS_64SD   "\x70\x00\xb2\xff"

◆ MIPS_CODE

#define MIPS_CODE   "\x0C\x10\x00\x97\x00\x00\x00\x00\x24\x02\x00\x0c\x8f\xa2\x00\x00\x34\x21\x34\x56"

◆ MIPS_CODE2

#define MIPS_CODE2   "\x56\x34\x21\x34\xc2\x17\x01\x00"

Function Documentation

◆ main()

int main ( )

Definition at line 177 of file test_mips.c.

◆ print_insn_detail()

static void print_insn_detail ( cs_insn *  ins)
static

Definition at line 32 of file test_mips.c.

◆ print_string_hex()

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

Definition at line 20 of file test_mips.c.

◆ test()

static void test ( )
static

Definition at line 72 of file test_mips.c.

Variable Documentation

◆ handle

csh handle
static

Definition at line 18 of file test_mips.c.



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