Classes | Macros | Functions | Variables
test_x86.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <capstone/platform.h>
#include <capstone/capstone.h>
Include dependency graph for test_x86.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 X86_CODE16   "\x8d\x4c\x32\x08\x01\xd8\x81\xc6\x34\x12\x00\x00\x05\x23\x01\x00\x00\x36\x8b\x84\x91\x23\x01\x00\x00\x41\x8d\x84\x39\x89\x67\x00\x00\x8d\x87\x89\x67\x00\x00\xb4\xc6\x66\xe9\xb8\x00\x00\x00\x67\xff\xa0\x23\x01\x00\x00\x66\xe8\xcb\x00\x00\x00\x74\xfc"
 
#define X86_CODE32   "\x8d\x4c\x32\x08\x01\xd8\x81\xc6\x34\x12\x00\x00\x05\x23\x01\x00\x00\x36\x8b\x84\x91\x23\x01\x00\x00\x41\x8d\x84\x39\x89\x67\x00\x00\x8d\x87\x89\x67\x00\x00\xb4\xc6\xe9\xea\xbe\xad\xde\xff\xa0\x23\x01\x00\x00\xe8\xdf\xbe\xad\xde\x74\xff"
 
#define X86_CODE64   "\x55\x48\x8b\x05\xb8\x13\x00\x00\xe9\xea\xbe\xad\xde\xff\x25\x23\x01\x00\x00\xe8\xdf\xbe\xad\xde\x74\xff"
 

Functions

static const char * get_eflag_name (uint64_t flag)
 
static const char * get_fpu_flag_name (uint64_t flag)
 
int main ()
 
static void print_insn_detail (csh ud, cs_mode mode, 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

◆ X86_CODE16

#define X86_CODE16   "\x8d\x4c\x32\x08\x01\xd8\x81\xc6\x34\x12\x00\x00\x05\x23\x01\x00\x00\x36\x8b\x84\x91\x23\x01\x00\x00\x41\x8d\x84\x39\x89\x67\x00\x00\x8d\x87\x89\x67\x00\x00\xb4\xc6\x66\xe9\xb8\x00\x00\x00\x67\xff\xa0\x23\x01\x00\x00\x66\xe8\xcb\x00\x00\x00\x74\xfc"

◆ X86_CODE32

#define X86_CODE32   "\x8d\x4c\x32\x08\x01\xd8\x81\xc6\x34\x12\x00\x00\x05\x23\x01\x00\x00\x36\x8b\x84\x91\x23\x01\x00\x00\x41\x8d\x84\x39\x89\x67\x00\x00\x8d\x87\x89\x67\x00\x00\xb4\xc6\xe9\xea\xbe\xad\xde\xff\xa0\x23\x01\x00\x00\xe8\xdf\xbe\xad\xde\x74\xff"

◆ X86_CODE64

#define X86_CODE64   "\x55\x48\x8b\x05\xb8\x13\x00\x00\xe9\xea\xbe\xad\xde\xff\x25\x23\x01\x00\x00\xe8\xdf\xbe\xad\xde\x74\xff"

Function Documentation

◆ get_eflag_name()

static const char* get_eflag_name ( uint64_t  flag)
static

Definition at line 34 of file test_x86.c.

◆ get_fpu_flag_name()

static const char* get_fpu_flag_name ( uint64_t  flag)
static

Definition at line 134 of file test_x86.c.

◆ main()

int main ( )

Definition at line 482 of file test_x86.c.

◆ print_insn_detail()

static void print_insn_detail ( csh  ud,
cs_mode  mode,
cs_insn *  ins 
)
static

Definition at line 182 of file test_x86.c.

◆ print_string_hex()

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

Definition at line 22 of file test_x86.c.

◆ test()

static void test ( )
static

Definition at line 372 of file test_x86.c.

Variable Documentation

◆ handle

csh handle
static

Definition at line 10 of file test_x86.c.



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