user1869391
user1869391

Reputation: 41

How do multiply a 64bits with 32 bits in MIPS

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

Answers (1)

Scott Hunter
Scott Hunter

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

Related Questions