Assuming we have some value in RAX. We want NOT the lower 32-bit RAX and leave the upper 32 bits unchanged. Is there a good way to do this?
A command like:
not eax
Unfortunately, zero continues.
I can do it like this:
mov rbx,rax
not ebx ; or not rbx
and rax, 0xffffffff00000000
or rax, rbx
but there seems to be a nicer way.
source
share