![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Finally, there is the
xor operator, ^
. Given 2 bytes as operands in a xor
expression, the value produced is a byte whose bits are 1 in exactly those
positions where one of the two operands has a 1, but not both operands:
l *-*-*-*-*-*-*-*-* |0|0|0|0|0|1|0|1| ----* *-*-*-*-*-*-*-*-* | | r v *-*-*-*-*-*-*-*-* | |0|0|0|0|1|0|0|1| -->-| *-*-*-*-*-*-*-*-* | | v Action of l ^ r *-*-*-*-*-*-*-*-* | |0|0|0|0|1|1|0|0| <---* *-*-*-*-*-*-*-*-*