|
|
|
@ -37,6 +37,8 @@ static void test() |
|
|
|
|
//#define ARM_CODE "\x04\xe0\x2d\xe5"
|
|
|
|
|
#define ARM_CODE "\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" |
|
|
|
|
#define ARM_CODE2 "\x10\xf1\x10\xe7\x11\xf2\x31\xe7\xdc\xa1\x2e\xf3\xe8\x4e\x62\xf3" |
|
|
|
|
#define ARMV8 "\xe0\x3b\xb2\xee\x42\x00\x01\xe1\x51\xf0\x7f\xf5" |
|
|
|
|
#define THUMB_MCLASS "\xef\xf3\x02\x80" |
|
|
|
|
#define THUMB_CODE "\x70\x47\xeb\x46\x83\xb0\xc9\x68" |
|
|
|
|
#define THUMB_CODE2 "\x4f\xf0\x00\x01\xbd\xe8\x00\x88\xd1\xe8\x00\xf0" |
|
|
|
|
#define MIPS_CODE "\x0C\x10\x00\x97\x00\x00\x00\x00\x24\x02\x00\x0c\x8f\xa2\x00\x00\x34\x21\x34\x56" |
|
|
|
@ -121,6 +123,20 @@ static void test() |
|
|
|
|
sizeof(THUMB_CODE) - 1, |
|
|
|
|
"THUMB" |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
CS_ARCH_ARM, |
|
|
|
|
(cs_mode)(CS_MODE_THUMB + CS_MODE_MCLASS), |
|
|
|
|
(unsigned char*)THUMB_MCLASS, |
|
|
|
|
sizeof(THUMB_MCLASS) - 1, |
|
|
|
|
"Thumb-MClass" |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
CS_ARCH_ARM, |
|
|
|
|
(cs_mode)(CS_MODE_ARM + CS_MODE_V8), |
|
|
|
|
(unsigned char*)ARMV8, |
|
|
|
|
sizeof(ARMV8) - 1, |
|
|
|
|
"Arm-V8" |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
CS_ARCH_MIPS, |
|
|
|
|
(cs_mode)(CS_MODE_32 + CS_MODE_BIG_ENDIAN), |
|
|
|
|