6. (2 point) Calculate the following operations using two\'s complement method:
ID: 3877211 • Letter: 6
Question
6. (2 point) Calculate the following operations using two's complement method: (assuming 8-bit register is used) 7. (1 point) What is the 16-bit hexadecimal representation of the following signed decimal integer? 8. (2 point) What is the decimal representation of each of the following signed binary numbers? 9-15 300 (1 point) 11101101 (1 point) 01110100 a. b. 9. (I point) What is the largest decimal value you can represent using a. b. (1/2 point) 80-bit unsigned integer? (1/2 point) 80-bit signed integer?Explanation / Answer
If you have any problem with the answer just let me know in the comments and I'll try to solve it as soon as possible.
1. We can write the equation as 9 + (-15) and then find the two's complement of - 15 and add it to 9.
Twos compliment of -15= 11110001, 9 =00001001.
11110001
+ 00001001
------------------------------
11111010 = (-6).
2. For converting negative decimal to hexadecimal we first change decimal to binary and find two's complement and then change to hex.
300 = 0000000100101100
Twos compliment = 1111111011010100,
Now binary to hex = FED4
3. (a) 11101101 = - 19
-we follow the steps used in question one but in reverse order, subtract 1 from 11101101, then inverting the bits and putting negative sign.
(b) 01110100 = 116
4. 80 bit unsigned = 280 - 1.
(b) 80 bit signed = 279 - 1.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.