Quantcast
Channel: x86 AND instruction - Stack Overflow
Viewing all articles
Browse latest Browse all 4

x86 AND instruction

$
0
0

In x86 64-bit, I have the following instruction:

and $0xf, %eax

The contents of %eax before and after remains 4. How is that possible? ANDing 100 & 1111 should result in 1100 which is 12, and not 4.


Viewing all articles
Browse latest Browse all 4

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>