Help with bit string flicking
can anyone help me with these 2 problems? teacher didn't finish going over the AND NOT 00001 part so I'm kind of lost...
( LCIRC – 2 ( NOT 10110 ) OR ( RSHIFT – 2 (LCIRC –1 10100 AND NOT 00001 ) ) )
and turn that into 3-digit hexadecimal string
Also
Evaluate A27 XOR 4E2
(both are base 16)
how do I do XOR? and after I do that is there anything special I have to do to turn it into a 3-digit hexadecimal string?
kind of lost, if you could explain some of it and show me how to solve them that would really help.
thanks in advance :thumb:
edit: typo
Re: Help with bit string flicking
Here's some stuff from mathworld.
Re: Help with bit string flicking
0 xor 0 = 0
1 xor 1 = 0
0 xor 1 = 1
1 xor 0 = 1
Then, for the specific xor operation you must solve, the best thing to do is write the numbers in binary:
A27 = 1010 0010 0111
4E2 = 0100 1110 0010
XOR-ing this (the operation is performed bitwise) yields: 1110 1100 0101 = EC5
Re: Help with bit string flicking
got it thanks for the help