Question

store -9 in 2's complement form utilizing two bytes

store -9 in 2's complement form utilizing two bytes

Homework Answers

Answer #1

two bytes = 2*8 = 16 bits

-9
This is negative. so, follow these steps to convert this into a 2's complement binary
Step 1:
Divide 9 successively by 2 until the quotient is 0
   > 9/2 = 4, remainder is 1
   > 4/2 = 2, remainder is 0
   > 2/2 = 1, remainder is 0
   > 1/2 = 0, remainder is 1
Read remainders from the bottom to top as 1001
So, 9 of decimal is 1001 in binary
So, 9 in normal binary is 0000000000001001
Step 2: flip all the bits. Flip all 0's to 1 and all 1's to 0.
   0000000000001001 is flipped to 1111111111110110
Step 3:. Add 1 to above result
1111111111110110 + 1 = 1111111111110111
so, -9 in 2's complement binary is 1111111111110111

Answer: 1111111111110111


Know the answer?
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
Similar Questions
A and B are two 8-bit 2’s complement numbers. The result of A & B is...
A and B are two 8-bit 2’s complement numbers. The result of A & B is 10011000 and the result of A ^ B is 00100110. (a) What is the sum A + B expressed in 8-bit two’s complement notation (use 1s and 0s, e.g. 10100101)? Will the carry flag be set? Will the overflow flag be set?
USING PEP 9 SIMULATOR (Hint only two bytes need to be changed in order for it...
USING PEP 9 SIMULATOR (Hint only two bytes need to be changed in order for it to run) Modify this program to convert a lower case character entered to an upper case character D1 FC 15 Load byte from keyboard (0xFC15) into A register F1 00 18 Store byte from A register to memory (0x0018) D1 00 18 Load byte from memory (0x0018) into A register 61 00 15 Add data at memory (0x0015) to register A E1 00 17...
Find the 2’s complement of the Binary number (1110010)2 .
Find the 2’s complement of the Binary number (1110010)2 .
Perform the following operation by using 2’s complement. -2510 - 7510
Perform the following operation by using 2’s complement. -2510 - 7510
(110011)2-(1001011)2 using 2's complement (918)BCD+(234)BCD
(110011)2-(1001011)2 using 2's complement (918)BCD+(234)BCD
Determine the 2’s complement equivalent of the following numbers in 8-bit format (N.B: You must show...
Determine the 2’s complement equivalent of the following numbers in 8-bit format (N.B: You must show your work for full credit)!   -12 = -9 =
Why the range of sign-magnitude numbers and the range of 2's complement numbers are different?
Why the range of sign-magnitude numbers and the range of 2's complement numbers are different?
The 8-bit signed binary 2's complement number equal to the decimal number -73 is [a].
The 8-bit signed binary 2's complement number equal to the decimal number -73 is [a].
Salary information regarding employees of two retail chains s is shown below. Store 1 Store 2...
Salary information regarding employees of two retail chains s is shown below. Store 1 Store 2 Sample Size 35 38 Sample Mean Salary (in 1,000) 45.6 40.1 Sample Standard Deviation 12.5 10.5 1.   What is the null and alternative hypothesis if we want to determine whether the mean salary of employees of the two retail chains is different? (2 Points) 2.   Calculate the t statistic (2 Points) 3.   Using a level of significance of 0.05, what is the rejection rule for this test...
Salary information regarding employees of two retail chains s is shown below. Store 1 Store 2...
Salary information regarding employees of two retail chains s is shown below. Store 1 Store 2 Sample Size 35 38 Sample Mean Salary (in 1,000) 45.6 40.1 Sample Standard Deviation 12.5 10.5 1.   What is the null and alternative hypothesis if we want to determine whether the mean salary of employees of the two retail chains is different? (2 Points) 2.   Calculate the t statistic (2 Points) 3.   Using a level of significance of 0.05, what is the rejection rule for this test...