Question

In: Computer Science

Assume -122 and -66 are signed 8-bit decimal integers. Calculate -122 + (- 66). and -122...

Assume -122 and -66 are signed 8-bit decimal integers. Calculate -122 + (- 66). and -122 - (- 66). Do we have overflow or underflow after each operation? Why?

Solutions

Expert Solution

Overflow or underflow happens when the result of addition or subtraction is greater or less than than specified range.Overflows do not happen in multiplication and division

im.performing the additions in decimal and then in explaining why overflow or underflow occurs with reference to range of number for this representation

If we have 8 bit signed magnitude no

We have seven bits for number magnitude and 1 bit for sign

Maximum decimal value that can be represented in 7 bit binary is ==127 (when all 7 1's are there in magnitude)

So maximum value in 8 bit signed magnitude is =127 in decimal

If sign bit =1 and all 7 bits are ones then no is -127 this is minimum value in decimal

If we add -122-66=-192

-192 does not lie between -127 to 127 so underflow occurs in final operation when 2 numbers are added.

Second case

Final arithmetic expressions

-122+66 =56

which lies between -127 to 127 so no underflow occurs

If you are having any doubts please ask i will answer asap


Related Solutions

Complete the following table. All binary numbers are 8-bit signed integers. (Don't forget to show the...
Complete the following table. All binary numbers are 8-bit signed integers. (Don't forget to show the steps of your solution!) Decimal value Sign-magnitude representation Ones' complement representation Two's complement representation -98 10001011 01110101 10100100 Compute the results of the indicated operations in columns 2 and 3, assuming that the binary numbers represent integers in the formats given by column 1. Identify which of the operations, if any, results in an overflow. (Don't forget to show the steps of your solution!)...
1. Complete the following table using 8-bit representation ((show your work to get credit) Decimal Signed...
1. Complete the following table using 8-bit representation ((show your work to get credit) Decimal Signed Magnitude One’s Complement Two’s Complement 30 -47 0
Represent -60 in binary using 8-bit signed magnitude. Add the following unsigned 8 bit binary numbers...
Represent -60 in binary using 8-bit signed magnitude. Add the following unsigned 8 bit binary numbers as shown. 01110101 + 00111011 Add the following unsigned 8 bit binary numbers as shown. 01000100 + 10111011
Interpret these signed 8-bit sequences with each type of signed/unsigned encoding. Remember the bits are arbitrary!...
Interpret these signed 8-bit sequences with each type of signed/unsigned encoding. Remember the bits are arbitrary! They can be interpreted in many different ways. C.1: Complete the following table using decimal (base-10) numbers. The first line is already completed for you bit sequence unsigned sign-magnitude 1s’ complement 2’s complement 00000101 +5 +5 +5 +5 11110001 ? ? ? ? 01010011 ? ? ? ? 10000000 ? ? ? ? 11111111 ? ? ? ?
Find the decimal equivalents for the following 8-bit two’s complement numbers. a. 0010 0100 Decimal Equivalent...
Find the decimal equivalents for the following 8-bit two’s complement numbers. a. 0010 0100 Decimal Equivalent ___________ b. 1010 1001 Decimal Equivalent ___________ c. 1100 0011 Decimal Equivalent ___________ d. 0101 0101 Decimal Equivalent ___________
Convert the following binary number (signed 32-bit floating point IEEE-754) into decimal. 0100 0011 0100 0000...
Convert the following binary number (signed 32-bit floating point IEEE-754) into decimal. 0100 0011 0100 0000 0000 0000 0000 0000
QUESTION 6 What is the dotted decimal representation of an 8-bit netmaks? a 255.255.255.255 b 255.0.0.0...
QUESTION 6 What is the dotted decimal representation of an 8-bit netmaks? a 255.255.255.255 b 255.0.0.0 c 255.255.0.0 d 255.0.0.255 e 0.0.0.255 10 points    QUESTION 7 If you receive a Request timed out error message when using ping, what would you attempt next? a nmap b metasploit c ipconfig d route e tracert 10 points    QUESTION 8 What does the server generate when a message via SMTP cannot be delivered? a NSA b NDR c HTTPS d LOL...
Write a verilog code for 8-bit signed multiplication using Booth algorithm and represent the RTL view...
Write a verilog code for 8-bit signed multiplication using Booth algorithm and represent the RTL view for code
Write -127 as 8 bit signed binary number both using 2'complement and sign/magnitude notation.
Write -127 as 8 bit signed binary number both using 2'complement and sign/magnitude notation.
if hexadecimal number FA16 represent a signed number in signed magnitude, what the decimal representation of...
if hexadecimal number FA16 represent a signed number in signed magnitude, what the decimal representation of that number? include the sign for that number with no spaces between the number and sign. for example -3 or +3
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT