Reputation: 41
Im trying to multiply two 32bits in mips. So the result is stored in the high and low register. How can I multiply the 64bit to a 32 bit when the answer is stored in two registers?
Upvotes: 0
Views: 1098
Reputation: 49896
You multiply each half of the 64-bit value by the 32-bit value, then add the matching registers together, realizing you may need a third 32-bit register to represent the result.
Upvotes: 2