Question: A: Calculate the following values by hand. All numbers represent unsigned 16-bit hexadecimal numbers. Make sure you show your work, including all borrows or intermediate
A:
Calculate the following values by hand. All numbers represent unsigned 16-bit hexadecimal numbers. Make sure you show your work, including all borrows or intermediate steps, when doing the subtraction. The result should be written in hexadecimal.
B:
Calculate the following values by hand. All numbers represent signed 16-bit hexadecimal numbers stored in sign-magnitude format. Make sure you show your work, including all borrows or intermediate steps. The result should be written in hexadecimal. Place your answer in the box.
C:
0x0C000000 and 0x268b300c are two's complement integers encoded as a hexadecimal number. Show all intermediate steps in your work below.
a) In decimal, the value of 0x0C000000 (two's compliment) is:
b) In decimal, the value of 0x268b300c (two's compliment) is:
D:
The following quests require converting a hexadecimal number to a MIPS instruction. Be sure to include any source register, destination register, addresses, or immediate values in your answer.
a) If the bit pattern 0x0C000000 is placed into the Instruction Register, what MIPS instruction will be executed?
b) If the bit pattern 0x268b300c is placed into the Instruction Register, what MIPS instruction will be executed?
E:
What decimal number does the bit pattern 0x0C000000 represent if it is a floating-point number? Use the IEEE 754 standard.
F:
Write down the binary representation of the decimal number 31.625 assuming the IEEE 754 single-precision format. (Show your steps) (using a mini float format)
G:
Write down the binary representation of the decimal number 31.625 assuming the IEEE 754 double-precision format. (Show your steps)
H: theory question
Describe an algorithm for converting a string to a floating-point value. Data from a console is initially read in from a string and must be converted to a floating-point format. For example, a string value of -705.7481 x 1020 needs to be parsed in some way to interpret it as a floating-point value. For this question, you do not need to show exactly how the characters in the string are converted to numbers, just describe in words each step in the algorithm. For example, a step might include "Read the digits from the left up to the decimal point."
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
