Part A Fill in the following table showing the results of ev
Part A Fill in the following table showing the results of evaluating Boolean operations on bit vectors. Drag the appropriate labels to their respective targets. Note: not all labels will be used. [00000001] [00100000] [10101010] Operation Result [00110001] [11011011] [01101001] [00111011] [11100011] [0101 0101] [00111100] [11100011] [01000001] [11100110] [01000100] [11101111] a & b [01010001] [111 10000] a b [01111101] [11110010] a A b [10010011] [11111000] (100101101 reset help
Solution
Here is the code for the first 4 subparts:
Given a = 0110 1001
b = 0101 0101
~a = 1001 0110
~b = 1010 1010
a & b = 0100 0001
a | b = 0111 1101
a ^ b = 1100 0011
Given x = 0xC3 = 1100 0011
x << 3 = 0001 1000 = 0x18
Logical x >> 2 = 1111 0000 = 0xF0
Given x = 0x75 = 0111 0101
x << 3 = 1010 1000 = 0xA8
Logical x >> 2 = 0001 1101 = 0x1D
Arithmetic x >> 2 = 0101 1101 = 0x5D
Given x = 0x87 = 1000 0111
x << 3 = 0011 1000 = 0x38
Logical x >> 2 = 0010 0001 = 0x21
Arithmetic x >> 2 = 1010 0001 = 0xA1
