Chapter 3: Q5E (page 237)
What is 4365 - 3412 when these values represent signed 12-bit octal numbers stored in sign-magnitude format? The result should be written in octal. Show your work.
Short Answer
Result in octal =.
Chapter 3: Q5E (page 237)
What is 4365 - 3412 when these values represent signed 12-bit octal numbers stored in sign-magnitude format? The result should be written in octal. Show your work.
Result in octal =.
All the tools & learning materials you need for study success - in one app.
Get started for free[30] <§3.5> If the bit pattern 0×0C000000 is placed into the Instruction Register, what MIPS instruction will be executed?
[30] <§3.4> Using a table similar to that shown in Figure 3.10, calculate 74 divided by 21 using the hardware described in Figure 3.11. You should show the contents of each register on each step. Assume A and B are unsigned 6-bit integers. This algorithm requires a slightly
different approach than that shown in Figure 3.9. You will want to think hard about this, do an experiment or two, or else go to the web to figure out how to make this work correctly. (Hint: one possible solution involves using the fact that Figure 3.11 implies the remainder register can be shifted either direction.)
As discussed in the text, one possible performance enhancement is to do a shift and add instead of actual multiplication. Since , for example, can be written , we can calculate by shifting 6 to the left 3 times and then adding 6 to that result. Show the best way to calculate using shifts and adds/subtracts. Assume both inputs are 8 bit unsigned integers.
Using a table similar to that shown in Figure 3.6, Calculate the product of the hexadecimal unsigned 8-bit integers 62 and 12 using the hardware described in Figure 3.5. You should show the contents of each register on each step.
Assume 185 and 122 are unsigned 8-bit decimal integers. Calculate 185 – 122. Is there overflow, underflow, or neither?
What do you think about this solution?
We value your feedback to improve our textbook solutions.