Find the equivalent MIPS assembly code for the C program as follows:
x = 5 y = x - 2 a = x * 4 b = y * 2 z = (x + a) - (y + b) Knowing that the variables x, y, a, b are 32-bit integers
This is the command I used in the first 2 lines:
addi $t0,$zero,5
addi $t1,$t0,-2
li $t2,4
But the third line I don't know which instruction to use to do the multiplication with the instantaneous constant
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)