Question

convert -45 to 9-bit 2's complement.

convert -45 to 9-bit 2's complement.

Homework Answers

Answer #1
This is negative. so, follow these steps to convert this into a 2's complement binary
Step 1:
Divide 45 successively by 2 until the quotient is 0
45/2 = 22, remainder is 1
22/2 = 11, remainder is 0
11/2 = 5, remainder is 1
5/2 = 2, remainder is 1
2/2 = 1, remainder is 0
1/2 = 0, remainder is 1
Read remainders from the bottom to top as 101101
Adding 3 zeros on left hand side of this number to make this of length 9
So, 45 in normal binary is 000101101
Step 2: flip all the bits. Flip all 0's to 1 and all 1's to 0.
   000101101 is flipped to 111010010
Step 3:. Add 1 to above result
111010010 + 1 = 111010011
so, -45 in 2's complement binary is 111010011
Answer: 111010011
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 -45 to 9-bit 2's complement.
convert -45 to 9-bit 2's complement.
convert -45 to 9-bit 2's complement.
convert -45 to 9-bit 2's complement.
Assuming nine-bit 2’s complement representation, convert the decimal number -137 to binary, show the effect of...
Assuming nine-bit 2’s complement representation, convert the decimal number -137 to binary, show the effect of the ROL operation on it with initial carry C=1, show the status bits and then convert the result back to decimal. Repeat with the ASR operation. Write the RTL specification of both operations shown here.
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.
Please show all work: Convert the following decimal numbers into 8-bit binary numbers in the 2’s-complement...
Please show all work: Convert the following decimal numbers into 8-bit binary numbers in the 2’s-complement form and perform the indicated operation. Circle the two binary numbers that are being added and the binary answer. Note: All three equivalent binary numbers are required for full credit.             +22             - 10             ----             =
1.What is the 8-bit 2's complement, 1's complement,sign-magnitude representation of 1710? Write your answer in the...
1.What is the 8-bit 2's complement, 1's complement,sign-magnitude representation of 1710? Write your answer in the format 0xHHHH... Where H's are hexidecimal digits. Include leading 0's (zeroes). Write hexidecimal digits, A-F, in capitals. 2.What is the 7-bit 1's complement representation of 10101012? 3.What is the 6-bit sign-magnitude representation of 1001012? Write your answer in decimal. 4.Given that you are working with a 3-bit 2's complement system. What is the additive inverse of -4? That is, -4 + ? = 0...
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?
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?
Translate the base 10 value -45 into 8-bit two's complement representation.
Translate the base 10 value -45 into 8-bit two's complement representation.
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 =
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT