# This is a simple test file to see if we have things working. # When run in self documenting mode and command free lines, # are echoed to the output. # # Lines with command line options (up to and including the pound sign) are # also copied to output. Application (ncdis) is then run on those options, # generating corresponding output. It is assume that the text after the # pound sign is the output generated by ncdis. Hence, this file is self # documenting in the sense that the input matches the output. # # Note: Useful command line options are: # -i=XXXXXXXX # Specifies a (even length) hexidecimal value defined the sequence # of bytess that defines the instruction to translate. # # --pc=XXXXXXXX # Specifies the value of the program counter, when it is pointing # to the instruction to be decoded. In not specified, the program # counter is assumed to be zero. # # Note: This file tests x86-32 instructions when -use_iter is specified. -i=0000 # 0: 00 00 add [%eax], %eax -i=00c0 # 0: 00 c0 add %eax, %eax -i=01c0 # 0: 01 c0 add %eax, %eax -i=0318 # 0: 03 18 add %ebx, [%eax] -i=031d20000000 # 0: 03 1d 20 00 00 00 add %ebx, [0x20] -i=020400 # 0: 02 04 00 add %eax, [%eax + %eax] -i=d50a # 0: d5 0a aad -i=90 # 0: 90 nop -i=6690 # 0: 66 90 nop -i=8d7600 # 0: 8d 76 00 lea %esi, 0x0[%esi] -i=8d742600 # 0: 8d 74 26 00 lea %esi, 0x0[%esi] -i=8db600000000 # 0: 8d b6 00 00 00 00 lea %esi, 0x0[%esi] -i=8db42600000000 # 0: 8d b4 26 00 00 00 00 lea %esi, 0x0[%esi] -i=89f6 # 0: 89 f6 mov %esi, %esi -i=8dbc2700000000 # 0: 8d bc 27 00 00 00 00 lea %edi, 0x0[%edi] -i=0f1f00 # 0: 0f 1f 00 nop -i=0f1f4000 # 0: 0f 1f 40 00 nop -i=0f1f440000 # 0: 0f 1f 44 00 00 nop -i=660f1f440000 # 0: 66 0f 1f 44 00 00 nop -i=0f1f8000000000 # 0: 0f 1f 80 00 00 00 00 nop -i=0f1f840000000000 # 0: 0f 1f 84 00 00 00 00 00 nop -i=660f1f840000000000 # 0: 66 0f 1f 84 00 00 00 00 00 nop -i=662e0f1f840000000000 # 0: 66 2e 0f 1f 84 00 00 00 00 00 nop -i=66662e0f1f840000000000 # 0: 66 66 2e 0f 1f 84 00 00 00 00 00 nop -i=6666662e0f1f840000000000 # 0: 66 66 66 2e 0f 1f 84 00 00 00 00 00 nop -i=666666662e0f1f840000000000 # 0: 66 66 66 66 2e 0f 1f 84 00 00 00 00 00 nop -i=66666666662e0f1f840000000000 # 0: 66 66 66 66 66 2e 0f 1f 84 00 00 00 00 00 nop -i=6666666666662e0f1f840000000000 # 0: 66 66 66 66 66 66 2e 0f 1f 84 00 00 00 00 00 nop -i=e300 # 0: e3 00 jcxz 0x2 -i=67e300 # 0: 67 e3 00 jcxz 0x3 -i=0f16d1 # 0: 0f 16 d1 movhps %xmm2, %edx -i=0f16a500000000 # 0: 0f 16 a5 00 00 00 00 movhps %xmm4, 0x0[%ebp] -i=0facc110 # 0: 0f ac c1 10 shrd %eax, %eax, 0x10 -i=0fad45bc # 0: 0f ad 45 bc shrd 0xffffffbc[%ebp], %eax, %cl