↧
Answer by Ry- for x86 AND instruction
Since when is 0100 & 1111 = 1100? 0100 = 4& 1111 = 15------ 0100 = 4
View ArticleAnswer by Carl Norum for x86 AND instruction
Nope - you're making a mistake. 100 & 1111 = 100.
View ArticleAnswer by Nick Garvey for x86 AND instruction
Think of 100 as 0100 and you can see that 0100 & 1111 is clearly 0100.
View Articlex86 AND instruction
In x86 64-bit, I have the following instruction:and $0xf, %eaxThe 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.
View Article