| OLD | NEW |
| (Empty) |
| 1 # This is a simple test file to see if we have things working. | |
| 2 # When run in self documenting mode and command free lines, | |
| 3 # are echoed to the output. | |
| 4 # | |
| 5 # Lines with command line options (up to and including the pound sign) are | |
| 6 # also copied to output. Application (ncdis) is then run on those options, | |
| 7 # generating corresponding output. It is assume that the text after the | |
| 8 # pound sign is the output generated by ncdis. Hence, this file is self | |
| 9 # documenting in the sense that the input matches the output. | |
| 10 # | |
| 11 # Note: Useful command line options are: | |
| 12 # -i=XXXXXXXX | |
| 13 # Specifies a (even length) hexidecimal value defined the sequence | |
| 14 # of bytess that defines the instruction to translate. | |
| 15 # | |
| 16 # --pc=XXXXXXXX | |
| 17 # Specifies the value of the program counter, when it is pointing | |
| 18 # to the instruction to be decoded. In not specified, the program | |
| 19 # counter is assumed to be zero. | |
| 20 # | |
| 21 # Note: This file tests x86-32 instructions when -use_iter is specified. | |
| 22 | |
| 23 -i=0000 # 0: 00 00 add [%ea
x], %eax | |
| 24 -i=00c0 # 0: 00 c0 add %eax
, %eax | |
| 25 -i=01c0 # 0: 01 c0 add %eax
, %eax | |
| 26 -i=0318 # 0: 03 18 add %ebx
, [%eax] | |
| 27 -i=031d20000000 # 0: 03 1d 20 00 00 00 add %ebx
, [0x20] | |
| 28 -i=020400 # 0: 02 04 00 add %eax
, [%eax + %eax] | |
| 29 -i=d50a # 0: d5 0a aad | |
| 30 -i=90 # 0: 90 nop | |
| 31 -i=6690 # 0: 66 90 nop | |
| 32 -i=8d7600 # 0: 8d 76 00 lea %esi
, 0x0[%esi] | |
| 33 -i=8d742600 # 0: 8d 74 26 00 lea %esi
, 0x0[%esi] | |
| 34 -i=8db600000000 # 0: 8d b6 00 00 00 00 lea %esi
, 0x0[%esi] | |
| 35 -i=8db42600000000 # 0: 8d b4 26 00 00 00 00 lea %esi
, 0x0[%esi] | |
| 36 -i=89f6 # 0: 89 f6 mov %esi
, %esi | |
| 37 -i=8dbc2700000000 # 0: 8d bc 27 00 00 00 00 lea %edi
, 0x0[%edi] | |
| 38 -i=0f1f00 # 0: 0f 1f 00 nop | |
| 39 -i=0f1f4000 # 0: 0f 1f 40 00 nop | |
| 40 -i=0f1f440000 # 0: 0f 1f 44 00 00 nop | |
| 41 -i=660f1f440000 # 0: 66 0f 1f 44 00 00 nop | |
| 42 -i=0f1f8000000000 # 0: 0f 1f 80 00 00 00 00 nop | |
| 43 -i=0f1f840000000000 # 0: 0f 1f 84 00 00 00 00 00 nop | |
| 44 -i=660f1f840000000000 # 0: 66 0f 1f 84 00 00 00 00 00
nop | |
| 45 -i=662e0f1f840000000000 # 0: 66 2e 0f 1f 84 00 00 00 00 00
nop | |
| 46 -i=66662e0f1f840000000000 # 0: 66 66 2e 0f 1f 84 00 00 00 00 00
nop | |
| 47 -i=6666662e0f1f840000000000 # 0: 66 66 66 2e 0f 1f 84 00 00 00 00
00 nop | |
| 48 -i=666666662e0f1f840000000000 # 0: 66 66 66 66 2e 0f 1f 84 00 00 00
00 00 nop | |
| 49 -i=66666666662e0f1f840000000000 # 0: 66 66 66 66 66 2e 0f 1f 84 00 00
00 00 00 nop | |
| 50 -i=6666666666662e0f1f840000000000 # 0: 66 66 66 66 66 66 2e 0f 1f 84 00
00 00 00 00 nop | |
| 51 -i=e300 # 0: e3 00 jcxz 0x2 | |
| 52 -i=67e300 # 0: 67 e3 00 jcxz 0x3 | |
| 53 -i=0f16d1 # 0: 0f 16 d1 movhps %
xmm2, %edx | |
| 54 -i=0f16a500000000 # 0: 0f 16 a5 00 00 00 00 movhps %
xmm4, 0x0[%ebp] | |
| 55 -i=0facc110 # 0: 0f ac c1 10 shrd %ea
x, %eax, 0x10 | |
| 56 -i=0fad45bc # 0: 0f ad 45 bc shrd 0xf
fffffbc[%ebp], %eax, %cl | |
| OLD | NEW |