Difference between revisions of "Bit.bxor"
From ComputerCraft Wiki
Scarfacial (Talk | contribs) |
|||
Line 1: | Line 1: | ||
== Explanation == | == Explanation == | ||
− | + | All bit operations operate in Binary numeral system [http://en.wikipedia.org/wiki/Binary_numeral_system]. | |
− | + | ||
− | + | So if you understand the basics than XOR is an EXCLUSIVE OR and like an OR with exclusion give: | |
− | + | ---- | |
+ | 01001011 (75) | ||
+ | ---- | ||
+ | <i>XOR</i> | ||
+ | ---- | ||
+ | 00011000 (24) | ||
+ | ---- | ||
+ | <i>=</i> | ||
+ | ---- | ||
+ | 01010011 (83) | ||
+ | ---- | ||
+ | |||
+ | Bits are XOR`red sequentially. |
Revision as of 10:39, 28 February 2012
Explanation
All bit operations operate in Binary numeral system [1].
So if you understand the basics than XOR is an EXCLUSIVE OR and like an OR with exclusion give:
01001011 (75)
XOR
00011000 (24)
=
01010011 (83)
Bits are XOR`red sequentially.