Perform the following logical operations assuming a Perform
Perform the following logical operations, assuming a Perform the following logical operations, assuming a nine-bit cell: Assuming seven-bit two\'s complement representation, convert each of the following decimal numbers to binary, show the effect of the ASL operation on it, and then convert the result back to decimal. Repeat with the ASR operation: 24 37 -26 1 0
Solution
A)
0 1001 0011
AND 1 0111 0101
====================
0 0001 0001
N = 17
Z = 17
==================
C)
0 1001 0011
OR 1 0111 0101
====================
1 1111 0111
N = 487
Z = -9
==================
E)
0 1001 0011
XOR 1 0111 0101
====================
1 1110 0110
N = 486
Z = -26
==================
Thanks, let me know if there is any concern.
