Multiplying a register value by a constant in MIPS?

MIPS instruction set doesn’t provide a mult instruction with immediate value. Hence you would have to store the value into a temporary register and then use mult instructions. The result of the mult instruction would be stored in lo and hi registers giving the lower 32-bit of the result and upper 32-bit of the result respectively.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)