@ -137,18 +137,18 @@ public class TestX86 {
public static void main ( String argv [ ] ) {
public static void main ( String argv [ ] ) {
final Test . platform [ ] all_tests = {
final TestBasic . platform [ ] all_tests = {
new Test . platform ( Capstone . CS_ARCH_X86 , Capstone . CS_MODE_16 , hexString2Byte ( X86_CODE16 ) , "X86 16bit (Intel syntax)" ) ,
new TestBasic . platform ( Capstone . CS_ARCH_X86 , Capstone . CS_MODE_16 , hexString2Byte ( X86_CODE16 ) , "X86 16bit (Intel syntax)" ) ,
new Test . platform ( Capstone . CS_ARCH_X86 , Capstone . CS_MODE_32 , Capstone . CS_OPT_SYNTAX_ATT , hexString2Byte ( X86_CODE32 ) , "X86 32 (AT&T syntax)" ) ,
new TestBasic . platform ( Capstone . CS_ARCH_X86 , Capstone . CS_MODE_32 , Capstone . CS_OPT_SYNTAX_ATT , hexString2Byte ( X86_CODE32 ) , "X86 32 (AT&T syntax)" ) ,
new Test . platform ( Capstone . CS_ARCH_X86 , Capstone . CS_MODE_32 , hexString2Byte ( X86_CODE32 ) , "X86 32 (Intel syntax)" ) ,
new TestBasic . platform ( Capstone . CS_ARCH_X86 , Capstone . CS_MODE_32 , hexString2Byte ( X86_CODE32 ) , "X86 32 (Intel syntax)" ) ,
new Test . platform ( Capstone . CS_ARCH_X86 , Capstone . CS_MODE_64 , hexString2Byte ( X86_CODE64 ) , "X86 64 (Intel syntax)" ) ,
new TestBasic . platform ( Capstone . CS_ARCH_X86 , Capstone . CS_MODE_64 , hexString2Byte ( X86_CODE64 ) , "X86 64 (Intel syntax)" ) ,
} ;
} ;
for ( int i = 0 ; i < all_tests . length ; i + + ) {
for ( int i = 0 ; i < all_tests . length ; i + + ) {
Test . platform test = all_tests [ i ] ;
TestBasic . platform test = all_tests [ i ] ;
System . out . println ( new String ( new char [ 16 ] ) . replace ( "\0" , "*" ) ) ;
System . out . println ( new String ( new char [ 16 ] ) . replace ( "\0" , "*" ) ) ;
System . out . println ( "Platform: " + test . comment ) ;
System . out . println ( "Platform: " + test . comment ) ;
System . out . println ( "Code: " + Test . stringToHex ( test . code ) ) ;
System . out . println ( "Code: " + TestBasic . stringToHex ( test . code ) ) ;
System . out . println ( "Disasm:" ) ;
System . out . println ( "Disasm:" ) ;
cs = new Capstone ( test . arch , test . mode ) ;
cs = new Capstone ( test . arch , test . mode ) ;