Forums
6510 Assembly Language
Quick find code:
23-24-959-66219400
Spearmint30
said
:
An example of a bitwise exclusive or is going to look at each bit and or the values together, so if you have:
Register A: 00110011
Register B: 01010101
XOR-outp: 01100110
So, basically, it compares two values at each bit. For each bit where the values differ, the XOR outputs a 1 and for each bit where the values are the same, it outputs a 0.
By comparison, a bitwise or operator will return a 1 if the value of either bit is a 1:
Register A: 00110011
Register B: 01010101
OR-outpu: 01110111
Someone told me it was a logic gate thing, and that's when the pineapples fell out of my head.
23-Jun-2021 21:20:57
Quick find code:
23-24-959-66219400
Back to Top