Question

In: Computer Science

Represent the following numbers in binary 8-bit representation using singed magnitude, one's complement, two's complement, and...

Represent the following numbers in binary 8-bit representation using singed magnitude, one's complement, two's complement, and excess-127 representations:

a) 48

b) -35

Solutions

Expert Solution

a. 48:

Binary number for 48 = 0011 0000

in signed magnitude system MSB (Most Significant Bit) is reserved for sign. If MSB is 1, then the number is negative otherwise positive.

Hence 48 in signed magnitude is 0011 0000

48 in 1's compliment is like flipping the bits of binary number which is 1100 1111

48 in 2's compliment is adding 1 to 1's compliment which is 1101 0000

48 in excess-127 is adding 127(0111 1111) to the 48 (0011 0000) which is 1010 1111

b. -35

35 in binary is 0010 0011

in signed magnitude system MSB (Most Significant Bit) is reserved for sign. If MSB is 1, then the number is negative otherwise positive.

35 in binary is 0010 0011

Hence -35 in signed magnitude is 1010 0011

-35 in 1's compliment is like flipping the bits of binary number which is 1101 1100

-35 in 2's compliment is adding 1 to 1's compliment which is 1101 1101

-35 in excess-127 is adding 127(0111 1111) to the -35 (1101 1101) which is 0101 1100


Related Solutions

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
Show the decimal integer 79 in 8-bit sign magnitude, one's complement, two's complement and excess-127 respectively...
Show the decimal integer 79 in 8-bit sign magnitude, one's complement, two's complement and excess-127 respectively in the given order, separated by comma.
Show the decimal integer -126 in 8-bit sign magnitude, one's complement, two's complement and excess-127 respectively...
Show the decimal integer -126 in 8-bit sign magnitude, one's complement, two's complement and excess-127 respectively in the given order, separated by comma.
Show the decimal integer -143 in 10-bit sign magnitude, one's complement, two's complement and excess-511 respectively...
Show the decimal integer -143 in 10-bit sign magnitude, one's complement, two's complement and excess-511 respectively in the given order
Show the decimal integer 44 in 7-bit sign magnitude, one's complement, two's complement and excess-63 respectively...
Show the decimal integer 44 in 7-bit sign magnitude, one's complement, two's complement and excess-63 respectively in the given order, separated by comma.
Represent -34 and +67 in the following way: a) 8 bit 1's complement representation.
Represent -34 and +67 in the following way: a) 8 bit 1's complement representation.
c) Using the 32-bit binary representation for floating point numbers, represent the number 1011100110011 as a...
c) Using the 32-bit binary representation for floating point numbers, represent the number 1011100110011 as a 32 bit floating point number. i) A digital camera processes the images images in the real-world and stores them in binary form. Using the principles of digital signal processing, practically explain how this phenomenon occurs.
1) Represent -34 and +67 in the following ways: a) 8 bit sign and magnitude representation...
1) Represent -34 and +67 in the following ways: a) 8 bit sign and magnitude representation with MSB as sign bit. b) 8 bit 1’s complement representation. c) 8 bit 2’s complement representation. 2) Convert the decimal numbers 40 and 20 into 8-bit unsigned binary representation and add the two numbers.
Assuming signed two’s complement representation using m=8 bits, add the following numbers using binary addition AND...
Assuming signed two’s complement representation using m=8 bits, add the following numbers using binary addition AND determine the values of the N, Z, V and C flags in response to each calculation. (-128) + (+100) (+5) + (+7) (+5) + (-7) (-5) + (+7) (-5) + (-7) (+120) + (+100) (-120) + (-100) (6A)16+ (E2)16 (A7)16+ (35)16 (80)16+ (80)16
1. Add the following binary numbers in 4-bit, two's complement notation. Identify any overflow errors. 01102...
1. Add the following binary numbers in 4-bit, two's complement notation. Identify any overflow errors. 01102 + 01002 2.Add the following binary numbers in 4-bit, two's complement notation. Identify any overflow errors. 10102 + 11112 3.Add the following binary numbers in 4-bit, two's complement notation. Identify any overflow errors. 10112 + 01112
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT