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.
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...
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!
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
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].
A). Convert following decimal integers to 8-bit two's complement binary numbers using any method . Explain...
A). Convert following decimal integers to 8-bit two's complement binary numbers using any method . Explain why, If decimal number cannot be represented with 8 bits. a. -46 b. -63 c. 118 d. -128 e. 128 B). Perform following operations by converting the decimal numbers to 8-bit two’s complement binary. Check results by converting final result to decimal a. 94-53 b. 15–84
Design a 4-bit adder-subtractor circuit using the 4-bit binary Full adders (74LS83) and any necessary additional...
Design a 4-bit adder-subtractor circuit using the 4-bit binary Full adders (74LS83) and any necessary additional logic gates. The circuit has a mode input bit, M, that controls its operation. Specifically, when M=0, the circuit becomes a 4-bit adder, and when M=1, the circuit becomes a 4-bit subtractor that performs the operation A plus the 2’s complement of B.Where A and B are two 4-bits binary numbers. That is, * When M=0, we perform A+B, and we assume that both...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT