Question

An 8-bit register contains 87h. If this computer represents the numbers in 2’s complement system, what...

  1. An 8-bit register contains 87h. If this computer represents the numbers in 2’s complement system, what negative number in decimal does these 8 bits represent?

Please show your work step by step

0 0
Add a comment Improve this question Transcribed image text
Answer #1

87H = 1000 0111

Clearly, this number is negative since the MSB bit is set to 1.

Now, in order to find the magnitude of the number, we would have to find the 2's complement of 1000 0111.

1's complement of 1000 0111 = 0111 1000

2's complement  of 1000 0111 = 0111 1000 + 1 = 0111 1001

Now, we would need to find the decimal equivalent of 0111 1001.

0111 1001 = 0*27 + 1*26 + 1*25 + 1*24 + 1*23 + 0*22 + 0*21 + 1*20

= 64 + 32 + 16 + 8 + 1 = 121

Hence, the decimal number is = -121

Add a comment
Know the answer?
Add Answer to:
An 8-bit register contains 87h. If this computer represents the numbers in 2’s complement system, what...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Chapter 1. problem 7: (5+5 pts)Tbe following 6-bit two's complement numbers were found in a computer....

    Chapter 1. problem 7: (5+5 pts)Tbe following 6-bit two's complement numbers were found in a computer. What decimal number do they represent'? f) 111001 Chapter 1.problem 9: (10 pts) Each of the following pairs of signed (two's complement) integers are stored in computer words (6 bits). Compute the sum as it is stored in a 6-bit computer word. Show the decimal equivalent of each operand and the sum. Indicate if there is overflow a) 110101 001111

  • Q1) Convert the following negative decimal numbers to 8 bit binary using the 2’s complement (show...

    Q1) Convert the following negative decimal numbers to 8 bit binary using the 2’s complement (show the steps): a) -39 b) -127 Q2) Solve the following subtraction problems using 2's complement representation. (Show the steps using 8-bits) a) 19 – 87 b) 89 – 5 Q3) Convert the following numbers into scientific notation: (Note: to show ten raised to the power of n, you can type as 10^n) a) 654.345 b) 0.000000324235 c) 25600000000000 Q4) Convert the following numbers out...

  • 5. Answer the followings a) Lets computer stored numbers in 8 bits in 2's complement format,...

    5. Answer the followings a) Lets computer stored numbers in 8 bits in 2's complement format, what is the largest and smallest number that can be stored? b) In (a) If we add 1 to the largest number what would happen? if we subtract 1 from smallest number what would happen? c) Why exponent is stored as biased exponent in floating point representation? d) In EFLAG register, some bits have given fixed value 0/1.what is rationale behind it?

  • 1.8 (1 marks) A computer has a word length of 8 bits (including sign). If 2’s...

    1.8 (1 marks) A computer has a word length of 8 bits (including sign). If 2’s complement is used to represent negative numbers, what range of integers can be stored in the computer? If 1’s complement is used? (Express your answers in decimal.)

  • Assume that 151 and 214 are signed 8-bit decimal integers stored in two’s complement format. Calculate...

    Assume that 151 and 214 are signed 8-bit decimal integers stored in two’s complement format. Calculate 151 + 214 by adding the two’s complement numbers first and then writing the final result in decimal. Then explain why the final result is very different from 366 (151+214=366). Note that if a number requires more than 8 bits, you need to represent first the number correctly using as many bits as necessary, then keep only the 8 bits, and use the resulting...

  • 5. Express (76) 10 and (-114)10 in 8-bit binary two's complement arithmetic and then add the...

    5. Express (76) 10 and (-114)10 in 8-bit binary two's complement arithmetic and then add the numbers. What would be the representation (0)10 in 16-bit binary two's complement? (be sure to show your work). 6. Create two 16-bit 2's complement integer such that their sum causes an overflow. Why does the sum of a negative 2's complement number and a positive 2's complement number never generate an overflow? Discuss.

  • 2. There are 26 characters in the alphabet we use for writing English. What is the...

    2. There are 26 characters in the alphabet we use for writing English. What is the least number of bits needed to give each character a unique bit pattern? How many bits would we need to distinguish between upper- and lowercase versions of all 26 characters? (12 points) What is the largest positive number one can represent in an 8-bit 2's complement code? Write your result in binary and decimal. a. What is the greatest magnitude negative number one can...

  • 2. Convert the following two's complement binary numbers to decimal numbers. These numbers are integers.

    2. Convert the following two's complement binary numbers to decimal numbers. These numbers are integers. a. 110101 b. 01101010 c. 10110101 3. Convert the following decimal numbers to 6-bit two's complement binary numbers and add them. Write the results in 6-bit two's complement binary number format and decimal number format. Indicate whether or not the sum overflows a 6-bit result. a. 14 + 12 b. 30 + 2 C. -7 + 20 d. -18-17 4. What is the signed/magnitude and two's complement range of...

  • 1.7 (2 marks) Add the following numbers in binary using 2’s complement to represent negative numbers....

    1.7 (2 marks) Add the following numbers in binary using 2’s complement to represent negative numbers. Use a word length of 6 bits (including sign) and indicate if an overflow occurs. Repeat using 1’s complement to represent negative numbers. (b) (−14) + (−32) (e) (−11) + (−21)

  • 6 - What decimal number does the bit pattern 0xC0B00000 represent if it is: • [2...

    6 - What decimal number does the bit pattern 0xC0B00000 represent if it is: • [2 pts] A two's complement integer? • [2 pts] An unsigned integer? • [2 pts] A floating point number assuming the IEE 754 single precision format 7 - Perform the following calculations assuming that the values are 8-bit decimal integers stored in two's complement format. Be sure to consider the possibility of overflow. • [2 pts] 10101010 + 00110011 • [2 pts] 10101010 – 00110011...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT