<?xml version="1.0" encoding='utf-8'?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="card1" title="Bitwise operation - Page 11 - Wikipedia">
<p>
<a accesskey="1" href="page.php?w=Bitwise_operation&amp;p=10">1.Previous</a><br />
<a accesskey="3" href="page.php?w=Bitwise_operation&amp;p=12">3.Next</a>
</p>
<p>(decimal 5) OR 0<b>011</b> (decimal 3)  = 0<b>111</b> (decimal 7)</p>

<p>The bitwise OR may be used to set to 1 the selected bits of the register described above. For example, the fourth bit of 0010 (decimal 2) may be set by performing a bitwise OR with the pattern with only the fourth bit set:</p>

<p>    <b>0</b>0<b>1</b>0 (decimal 2) OR <b>1</b>0<b>0</b>0 (decimal 8)  = <b>1</b>0<b>1</b>0 (decimal 10)</p>

<p><big>XOR</big></p>
<p>A <b>bitwise XOR</b> is a <a href="page.php?w=binary_operation">binary operation</a> that takes two bit patterns of equal</p><p>
<a accesskey="1" href="page.php?w=Bitwise_operation&amp;p=10">1.Previous</a><br />
<a accesskey="3" href="page.php?w=Bitwise_operation&amp;p=12">3.Next</a>
</p>

<do type="prev" label="Search">
        <go href="search.wml"/>
</do>

</card>
</wml>
