Reference no: EM132206520
Question :
Write a MIPS function that given two user inputed integers, returns the product of those two integers.
You may NOT use arithmetic instructions in the code as primitives?.
The eligible primitives for this programming exercise include:
· Logical instructions such as: and, or, not, xor
· Shift and rotate instructions such as: sll, srl, ror, rol, sra
· Branch and jump instructions such as: beq, bne, bls, ble, bgt, bge, j, jal, jr
EXCEPTION : You may use the addi instruction to change the stack pointer register, $sp, in the push and pop operations.