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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started