7. Solve the following using 2’s Complement. You are working with a 6-bit register (including sign). Indicate if there’s an overflow or not. a. (-14)+(-28) b. 12+(-16) c. 10+11
The overflow flag is relevant when we are calculating the sum of two signed numbers but it is not relevant to the unsigned number addition.
a.
The given expression is:
= (-14) + (-28)
The binary equivalent of 14 is = 001110
The binary equivalent of -14 is = 110000
The binary equivalent of 28 is = 011100
The binary equivalent of -28 is = 100010
There is an overflow.
b.
The given expression is:
= 12 + (-16)
When the sign of two additional operands is different then overflow never occurs.
The binary equivalent of 12 is = 001100
The binary equivalent of 16 is = 010000
The binary equivalent of -16 is = 110000
The MSB(Most Significant Bit) is one, so the result is negative and stored in two's complement form.
The result after two's complement is = 000100
So, the result is = -4
There is no overflow.
c.
The given expression is:
= 10 + 11
The binary equivalent of 10 is = 001010
The binary equivalent of 11 is = 001011
There is no overflow.
The final result is positive and the result is = 21.
7. Solve the following using 2’s Complement. You are working with a 6-bit register (including sign)....
1.7 (2 marks) Add the following numbers in binary using 2’s complement to represent negative numbers. Use a word length of 6 bits (including sign) and indicate if an overflow occurs. Repeat using 1’s complement to represent negative numbers. (b) (−14) + (−32) (e) (−11) + (−21)
3) (4 points) Calculate the following 5-bit 2's-complement addition equations showing all carries. Clearly show the 5-bit 2's complement of the two operands, circle the 5-bit sum, and indicate whether or not overflow occurred. a) 10+6 c) 10+(-6) d) 12+8
2) Perform the following Mathematical operations Using 2's complement, Indicate where overflow occurs, (You must convert to s-bit Binary and then do the Math, A=+ll B = +6 c= -4 е) В - А c) a) A-B b) CIA C- A- d) C
3. Use 6 bits (2's complement representation) to solve the following problem. Indicate any overflow. a. Convert decimal +16 and +21 to binary. (5 pts.) b. Perform the binary equivalent of (+16) + (-21) (3 pt.) c. Perform the binary equivalent of (-16)+(-21) (3 pts.)
1. What is the largest decimal number we can represent with a 16 bit two's complement number? 2. Convert the following signed binary numbers to decimals. 11001 010011 1110100 1100111 3. Convert the following decimal numbers to 6-bit two's complement binary numbers and add them. Note if there is an overflow. 7 + 13 Two's complement/binary number for 7: Two's complement/binary number for 13: Sum: Overflow? 4. Convert the following decimal numbers to 6-bit two's complement binary numbers...
101b= 2610, what is b? How the following numbers will be represented in 4-bit (a) sign-magnitude (b) two’s complement and (c) unsigned representations. Indicate if not possible. 2, 5, 7, 8 How the following negative numbers will be represented in 4-bit (a) sign-magnitude and b) two’s complement representations. Indicate if not possible. -2, -5, -7, -8 Consider the following java program snippet (hint: byte is represented as 8-bit 2’s complement number in java- run the program in java to check it). What will be printed? Explain....
Perform the following base conversion 10011000 is in 2's Complement ?) in 7's complement notation 1. 2. 0.335 base 6-() base 10. Given a 2K by 8 bit memory device with three enable pins. The device is enabled when E2 E1 E0-110. Show how to connect the device to the 16 bit Address Bus so that it is located at ŞE000 and takes up exactly 2K of memory space 3. 4 Write -27.5 signed base 10 in 16 bit Floating...
Let A= 00101101 = (+45)10 , B = 11100111 = (-25)10 in 8-bit 2’s complement system. Perform the following opperations to obtain the 8-bit answers and indicate if there is an overflow a) A – B b) A + B
11. Perform the following hexadecimal additions and subtractions. Assume the numbers are stored in 32-bit 2’s complement binary numbers. Indicate the sign of the answer and whether overflow occurs. a. BBCA270C + AE223464 b. E3BA265F + E045B9A9 c. E9B20F5D – FE605C8D d. 5FCA5243 – AE223464
(10/100) Add the following decimal numbers m binary: 11 + (-15). Use 2's complement to represent negative numbers. Use a word length of 5 bits (including sign). Indicate if an overflow' occurs.