Question: 4. A While-Do problem: The ARM-based processors have both signed and unsigned multiplication instruction but some do not have divide instructions. As shown in the
4. A While-Do problem: The ARM-based processors have both signed and unsigned multiplication instruction but some do not have divide instructions. As shown in the this chapter, you can aivideo number by a power of 2 by simply shifting it right the number of bit positions equal to the power of 2. For cases where shifting does not work, you can do division by successive subtraction of the divisor (bottom number) from the dividend (top number) until the result is less than the divisor. a. Write an algorithm for a program that divides a given 32-bit unsigned number by a given 16-bit unsigned integer and produces a rounded result. Make sure to think about the action(s) you want for the boundary conditions of "divisor greater than dividend" and "divisor equal to zero." b. Write the assembly language for your algorithm. TEL
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
