a. Find the 32-bit and 64-bit 2’s complement, 1’s complement and sign-magnitude
ID: 3840853 • Letter: A
Question
a. Find the 32-bit and 64-bit 2’s complement, 1’s complement and sign-magnitude representations of the decimal value: 32767.
b. Find the 32-bit and 64-bit 2’s complement, 1’s complement and sign-magnitude representations of the decimal value: –32767.
c. Find the decimal values of the number 98C2 417DH interpreted as a 2’s complement, and then interpreted as unsigned representation.
d. What is displayed when the following sequence of ASCII codes is output to a computer screen: 6E 61 6D 0D 0A 61 64 72 65 73 73 0D 0A 63 69 74 79 0D 0A.
e. Given the number 39254861H, determine value under the interpretation as an unsigned integer, then as a 4-tuple of ASCII codes.
f. Convert 356 (base 7) into numbers in bases 10, 2, 16 and 5.
Explanation / Answer
(A)Decimal Value : 32767 , BinaryValue .:00000000000000000111111111111111 [32 bits]
1's Complement : 32 bits : 00000000000000000111111111111111
1's Complement : 64 bits : 0000000000000000000000000000000000000000000000000111111111111111
2's Complement : 32 bits : 00000000000000000111111111111111
2's Complement : 64 bits : 0000000000000000000000000000000000000000000000000111111111111111
Signed Magnitude: : 32 bits : 00000000000000000111111111111111
Signed Magnitude: : 64 bits : 0000000000000000000000000000000000000000000000000111111111111111
==================================================================
(B)
Decimal Value : -32767
1's Complement : 32 bits : 11111111111111111000000000000000
1's Complement : 64 bits :1111111111111111111111111111111111111111111111111000000000000000
2's Complement : 32 bits : 11111111111111111000000000000001
2's Complement : 64 bits :1111111111111111111111111111111111111111111111111000000000000001
Signed Magnitude: : 32 bits : 11111111111111111111111111111111
Signed Magnitude: : 64 bits : 1111111111111111111111111111111111111111111111111111111111111111
==================================================================
98C2 417DH
10011000 11000010 01000001 01111101 (2's complement)
01100111 00111101 10111110 10000011
Its Interpreted as -1732099715
==================================================================
d) 6E 61 6D 0D 0A 61 64 72 65 73 73 0D 0A 63 69 74 79 0D 0A
It will display nam , adress , city
==================================================================
39254861H : 00111001 00100101 01001000 01100001
So ASCII IS : 9%Ha
==================================================================
Number 356 (base 7) is in base 10: 188.
Number 356 (base 7) is in base 2: 10111100.
Number 356 (base 7) is in base 16: bc.
Number 356 (base 7) is in base 5: 1223.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.