Classes | Macros | Functions | Variables
test_arm.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <capstone/platform.h>
#include <capstone/capstone.h>
Include dependency graph for test_arm.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 ARM_CODE   "\x86\x48\x60\xf4\x4d\x0f\xe2\xf4\xED\xFF\xFF\xEB\x04\xe0\x2d\xe5\x00\x00\x00\x00\xe0\x83\x22\xe5\xf1\x02\x03\x0e\x00\x00\xa0\xe3\x02\x30\xc1\xe7\x00\x00\x53\xe3\x00\x02\x01\xf1\x05\x40\xd0\xe8\xf4\x80\x00\x00"
 
#define ARM_CODE2   "\xd1\xe8\x00\xf0\xf0\x24\x04\x07\x1f\x3c\xf2\xc0\x00\x00\x4f\xf0\x00\x01\x46\x6c"
 
#define ARMV8   "\xe0\x3b\xb2\xee\x42\x00\x01\xe1\x51\xf0\x7f\xf5"
 
#define THUMB_CODE   "\x60\xf9\x1f\x04\xe0\xf9\x4f\x07\x70\x47\x00\xf0\x10\xe8\xeb\x46\x83\xb0\xc9\x68\x1f\xb1\x30\xbf\xaf\xf3\x20\x84\x52\xf8\x23\xf0"
 
#define THUMB_CODE2   "\x4f\xf0\x00\x01\xbd\xe8\x00\x88\xd1\xe8\x00\xf0\x18\xbf\xad\xbf\xf3\xff\x0b\x0c\x86\xf3\x00\x89\x80\xf3\x00\x8c\x4f\xfa\x99\xf6\xd0\xff\xa2\x01"
 
#define THUMB_MCLASS   "\xef\xf3\x02\x80"
 

Functions

int main ()
 
static void print_insn_detail (csh cs_handle, 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

◆ ARM_CODE

#define ARM_CODE   "\x86\x48\x60\xf4\x4d\x0f\xe2\xf4\xED\xFF\xFF\xEB\x04\xe0\x2d\xe5\x00\x00\x00\x00\xe0\x83\x22\xe5\xf1\x02\x03\x0e\x00\x00\xa0\xe3\x02\x30\xc1\xe7\x00\x00\x53\xe3\x00\x02\x01\xf1\x05\x40\xd0\xe8\xf4\x80\x00\x00"

◆ ARM_CODE2

#define ARM_CODE2   "\xd1\xe8\x00\xf0\xf0\x24\x04\x07\x1f\x3c\xf2\xc0\x00\x00\x4f\xf0\x00\x01\x46\x6c"

◆ ARMV8

#define ARMV8   "\xe0\x3b\xb2\xee\x42\x00\x01\xe1\x51\xf0\x7f\xf5"

◆ THUMB_CODE

#define THUMB_CODE   "\x60\xf9\x1f\x04\xe0\xf9\x4f\x07\x70\x47\x00\xf0\x10\xe8\xeb\x46\x83\xb0\xc9\x68\x1f\xb1\x30\xbf\xaf\xf3\x20\x84\x52\xf8\x23\xf0"

◆ THUMB_CODE2

#define THUMB_CODE2   "\x4f\xf0\x00\x01\xbd\xe8\x00\x88\xd1\xe8\x00\xf0\x18\xbf\xad\xbf\xf3\xff\x0b\x0c\x86\xf3\x00\x89\x80\xf3\x00\x8c\x4f\xfa\x99\xf6\xd0\xff\xa2\x01"

◆ THUMB_MCLASS

#define THUMB_MCLASS   "\xef\xf3\x02\x80"

Function Documentation

◆ main()

int main ( )

Definition at line 348 of file test_arm.c.

◆ print_insn_detail()

static void print_insn_detail ( csh  cs_handle,
cs_insn *  ins 
)
static

Definition at line 33 of file test_arm.c.

◆ print_string_hex()

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

Definition at line 21 of file test_arm.c.

◆ test()

static void test ( )
static

Definition at line 185 of file test_arm.c.

Variable Documentation

◆ handle

csh handle
static

Definition at line 10 of file test_arm.c.



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