XOR (binary)

From veswiki
Revision as of 21:23, 16 November 2012 by E5frog (talk | contribs) (1 revision)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

To XOR (eXclusive OR) one value with another is to compare the bits of each value, and only keep the ones which are true in one byte, not the other. For example, if you XOR'd these values:


You would get:


Because only those bits are true in one byte or the other, but not both. The F8 can only XOR two bytes at a time.

See Also