Question: Write MIPS code to add two 64-bit numbers. The addition must be done in two stages: first the lower 32 bits and then the upper
Write MIPS code to add two 64-bit numbers. The addition must be done in two stages: first the lower 32 bits and then the upper 32 bits. The result of the two lower 32 bits is stored in the lower 32 bits of the result. If this generates a carry then one must be added (or "or"-ed) to the upper 32-bit addition. The result of the upper 32-bit addition (with or without carry) is stored in the upper 32-bits of the result. All these 32-bit additions adds should be done with addu instructions. There are no negative numbers, and the bits should not be treated as two's complement.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
