Question: 6. (10 points) The following MIPS code to compute change is broken. It takes an integer m as input, and outputs two values. m is
6. (10 points) The following MIPS code to compute change is broken. It takes an integer m as input, and outputs two values. m is an amount of currency in cents (For example if given $1.12, m contains the integer 112). The two outputs should be the number of dollar bills and the number of quarters in that order. The values are rounded down if there is not enough cents to make a full quarter. Fix the code change: div $a0, 100 div $a0, 25 7. (3 points) Consider a fictitious arithmetic operation "foo". Foo has two inputs, an output, a carry in and a carry out (similar to an addition). A certain microprocessor has a very large multimedia register of 100 bits, and the word-length is normally 20 bits. Describe how sub-word parallelization can reduce the number of instructions for multiple foo operations
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
