Questions about this topic? Sign up to ask in the talk tab.
Difference between revisions of "Bitwise math/Operators/XOR/example"
From NetSec
GertieUbpgdd (Talk | contribs) (Created page with "<noinclude>{{subpage|Bitwise math}}</noinclude> :''Example: A xor F = 5'' ::{| class="wikitable" width="40%" style="text-align:center" |- !Operation !Hexadecimal !Binary !comment...") |
GertieUbpgdd (Talk | contribs) |
(No difference)
|
Latest revision as of 06:11, 19 July 2012
- back to Bitwise math
- Example: A xor F = 5
Operation Hexadecimal Binary comment
xor A
F
1010
1111
The first and third bits are true.
The first, second, third, and fourth bits are true.
= 5 0101 The second and fourth bits are true in ONLY one instance as opposed to two.
- The 8’s and 2's placeholders are the same so they return 0.
- The 4’s and 1’s placeholders are different, therefore return true.