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
Convert (96)10 to binary form in 2's complement representation. Given the two binary numbers X =...
Convert (96)10 to binary form in 2's complement representation. Given the two binary numbers X = 1010011 and Y = 1010010 perform the subtraction X - Y. Enter your result below: Which bit of a signed binary number represents the sign?
Write -42 in the 16-bit 1’s complement and 2’s complement forms.
Write -42 in the 16-bit 1’s complement and 2’s complement forms.
Express the following 2’s complement number in decimal form, assume leftmost bit is the sign bit....
Express the following 2’s complement number in decimal form, assume leftmost bit is the sign bit. 1000110                            b. 011101                                c. 111111 d.   100000001                        e. 101                                      f. 00011111 g. 101001010                          h. 11                                        i. 10001
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 .
1.Find the 2’s complement of 11111011. What is the decimal value of it 2.Find A-B using...
1.Find the 2’s complement of 11111011. What is the decimal value of it 2.Find A-B using 2’s complement if A=1010 and B=11100 3. A) What is the range of numbers in a 4-bit machine if unsigned integer format is used. B) What is the smallest and largest number when 2’s complement format is used.
Express the decimal number (-37)10 as an 8-bit 2's complement binary number. Given the two signed...
Express the decimal number (-37)10 as an 8-bit 2's complement binary number. Given the two signed binary numbers (2's comp.) X = -8 and Y = 14, what is their sum? What is the BCD representation of the decimal value (9371)10?
(110011)2-(1001011)2 using 2's complement (918)BCD+(234)BCD
(110011)2-(1001011)2 using 2's complement (918)BCD+(234)BCD
Perform the following operation by using 2’s complement. -2510 - 7510
Perform the following operation by using 2’s complement. -2510 - 7510