X86-assembly/Instructions/not

From aldeid
Jump to navigation Jump to search
You are here:
not

Description

Performs a bit-wise inversion of arg.

Syntax

not reg
not mem

Example

mov edx, 01111110b ; edx = 01111110b
not edx            ; edx = 10000001b
mov edx, 6C796C6Eh ; 01101100011110010110110001101110
not edx            ; 10010011100001101001001110010001

Implementation in python

Here is a way you can implement this in python:

>>> edx = 0x6c697749
>>> hex(~edx & 0xffffffff)
'0x939688b6'

Comments