(self)
| 672 | # FIXME: We should not have to use different instructions to |
| 673 | # set eax to 0 or 1, on 32bit and 64bit machines. |
| 674 | def _zero_eax(self): |
| 675 | if DataSource.bits == '64bit': |
| 676 | return ( |
| 677 | b"\x66\xB8\x00\x00" # mov eax,0x0" |
| 678 | ) |
| 679 | else: |
| 680 | return ( |
| 681 | b"\x31\xC0" # xor ax,ax |
| 682 | ) |
| 683 | |
| 684 | def _one_eax(self): |
| 685 | if DataSource.bits == '64bit': |