Question

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.

Homework Answers

Answer #1

Q1)

2's Complement of 11111011 = 00000101

In 2's complement if MSB Bit is 0 Then Number is Positive and If MSB is 1 the Number is negative

Decimal Value of = 00000101 = + 5

Q2)

In 2's complement we represent negative Number by taking 2's complement of its positive value .

A - B = A + 2's Complement of B

A= 01010

B = 2's Complement ( 11100) = 00100

Now add Both

01010

+00100

----------

01110

Result is 01110 = +14

This is how we can do the Subtraction using 2's complement .

Q3)

Part A

in 4 bits we have number ranging from 0000 to 1111

So 0000 = + 0

and 1111 = + 15

Hence we get Range as 0 - 15

Part B)

In 2's Complement form we have range [−2N1, 2N1 − 1] where N is Number of bits

Here N = 4

- 2^4-1 = -2^3= -8 ,

2^4-1 -1 = 2^3 -1 = 8-1 = 7

Hence Range is -8 To 7

This is how we can solve each problem

Thank You

If u like the answer then do Upvote it and have any doubt ask in comments

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
6. What decimal number does the bit pattern 0xBF800000 represent if it is: A two's complement...
6. What decimal number does the bit pattern 0xBF800000 represent if it is: A two's complement integer An unsigned integer A floating point number assuming the IEE 754 single precision format PLEASE EXPLAIN AND SHOW WORK
True and False 1. A half-adder has 2 inputs and 2 outputs. 2. Using only full-adders,...
True and False 1. A half-adder has 2 inputs and 2 outputs. 2. Using only full-adders, how many are needed to add together two 8-bit unsigned integer binary codes? 3. When A and B are unsigned integer binary codes, A-B is calculated as 2's complement(A) + B. 4. An N-bit address bus sends an address value one bit at a time. 5. The instruction pointer register stores the result of calculations from the previous instruction.
1. Assuming unsigned binary representation, convert 10110 (B) to decimal. Show work. 2 . Assuming unsigned...
1. Assuming unsigned binary representation, convert 10110 (B) to decimal. Show work. 2 . Assuming unsigned binary representation, convert 12 (D) to binary. Show work. 4. Assuming 9-bit two’s complement representation and let x be binary representation of 94 (D) a. Find x. Show work. b. Show the effect of the ASL operation on x, and then convert the result back to decimal. c. Show the effect of the ASR operation on x, and then convert the result back to...
EE 263 Homework Assignment 1    Perform the following conversions: Convert 51 (decimal) to binary and...
EE 263 Homework Assignment 1    Perform the following conversions: Convert 51 (decimal) to binary and to hex Convert 0xD1 (hexadecimal) to binary and to decimal Convert 0b11001001 (binary) to hex and to decimal Find the 2’s complement of the following 4-bit numbers 1101 0101 Perform the following 4-bit unsigned operations. For each, indicate the 4-bit result and the carry bit, and indicate if the answer is correct or not. 5 + 8 2 + 12 13 – 7 4...
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?
What decimal number does the bit pattern 1101 1011 represent if it is a: • [1...
What decimal number does the bit pattern 1101 1011 represent if it is a: • [1 pts] unsigned integer? • [1 pts] sign-magnitude integer? • [1 pts] two's complement integer? Please Explain and Show all work
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?
Find the 2's complement of the following decimal numbers (You must convert the number to binary...
Find the 2's complement of the following decimal numbers (You must convert the number to binary and the answer has to be in binary with the same number of bits as the conversion)? a. 20 b. 15 c. 2126 d. 266 e. 466 please explain how you did it!
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].
I have an 4-bit unsigned Binary adder that performs F=A+B with carry in and carry out,...
I have an 4-bit unsigned Binary adder that performs F=A+B with carry in and carry out, I have to draw the smallest circuit using the adder and whatever other combinational logic gates I need to perform the 4-bit function below on 2's complement numbers A and B F=A+B if ADD=1, F=A-B if ADD=0
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT