Question

In: Computer Science

1-How is -89 represented using 8-bit two's compliment? (The answer should be 8 binary digits). 2-What...

1-How is -89 represented using 8-bit two's compliment? (The answer should be 8 binary digits).

2-What is 10101100 - 00100100 using 2's compliment arithmetic? (The answer should be 8 binary digits)

3-Assume we are using the simple model for floating-point representation as given in the text (the representation uses a 14-bit format, 5 bits for the exponent with a bias of 15, a normalized mantissa of 8 bits, and a single sign bit for the number):Show how the computer would represent the numbers 100.0 using this floating-point format. Express the answer in hexadecimal using 4 hex digits.

4-Show how 12.5 would be stored using IEEE-754 single precision. Express the answer as 8 hexadecimal digits

Solutions

Expert Solution

Q1

First, we represent 89 in binary then take its complement and add 1 to get the representation of -89 in 2's complement

So 89 in binary is 01011001

and we take its 1 complement and add 1 to it

(01011001)' +1 = 10100110+1=10100111

Q2

In 2's complement, we can do subtraction by taking 2's complement of the second number and add it to the first so the 2's complement of 00100100 is 11011100 and we add it to the first 10101100

So adding the two gives us

1010 1100

1101 1100

=10001000

Q3

Converting 100 to binary we get 1100100

converting it to normalized form we have 1.100100 * 2^6

So the exponent becomes 6 + 15 = 21 and the sign bit is 0 as the number is positive and the mantissa is value after decimal so 16 bit representation is

0 10101 10010000

So in hex the representation is

0001 0101 1001 0000 = 0x1590

Q4

12.5 = 0x41480000


Related Solutions

Binary How is 00001001 (base 2) represented in 8-bit two’s complement notation? Convert 0.3828125 to binary...
Binary How is 00001001 (base 2) represented in 8-bit two’s complement notation? Convert 0.3828125 to binary with 4 bits to the right of the binary point. How is 00110100 (base 2) represented in 8-bit one's complement.  
PROBLEM 2 (a) Do operation 75.38 - 18.62 in binary using two's complement. Use for the...
PROBLEM 2 (a) Do operation 75.38 - 18.62 in binary using two's complement. Use for the 6 bit fractional part (b) Convert the resulting expression to decimal, and say how much is the absolute error obtained in the operation
Problem: Perform following operations in binary using 8-bit addition/subtraction/multiplication. 1. −80 + 42 2. −99 −...
Problem: Perform following operations in binary using 8-bit addition/subtraction/multiplication. 1. −80 + 42 2. −99 − 20 3. 60 − 70 4. −59 × 3 5. 52×−1
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.
Part 1: Solve the operation 75.38-18.62 in binary using two's complement. Use 6 bits for the...
Part 1: Solve the operation 75.38-18.62 in binary using two's complement. Use 6 bits for the fractionary part. Part 2:Convert the result to a decimal, and explain how much is the absolute error obtained in the operation. (Provide Step by Step process of problem solving in each part.)
What digits are used in binary number system? How much is 305.511 in binary form?
What digits are used in binary number system? How much is 305.511 in binary form?
In Verilog, implement a circuit capable of adding and subtracting 8-bit binary numbers. You should submit...
In Verilog, implement a circuit capable of adding and subtracting 8-bit binary numbers. You should submit a single Verilog file that contains all of the necessary modules and also contain a module named top(A, B, sel, F, C). For the selection, use a 0 to select Addition and a 1 to select Subtraction.
Using two SN74LS169 modules to build an 8-bit binary UP/DOWN counter. 1. Show the block diagram...
Using two SN74LS169 modules to build an 8-bit binary UP/DOWN counter. 1. Show the block diagram of your design
1. What is the two’s complement of: 00110101 2. Carry out the following calculation using 8-bit...
1. What is the two’s complement of: 00110101 2. Carry out the following calculation using 8-bit signed arithmetic (convert to 8-bit binary sequences) and use two’s complement for the negative number, give the result as both an 8-bit binary sequence and in base 10: 127 – 74. 3. What does shifting a binary sequence to left by 3 places correspond to (from the arithmetic standpoint)
Using Multisim, design a 2-bit, synchronous binary counter and verify that it counts in the right...
Using Multisim, design a 2-bit, synchronous binary counter and verify that it counts in the right sequence, Can count up or down and use any FF you desire; 4 screen shots in total: 1 for each input combination
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT