MIPS' native assembly code only has two branch instructions, beq and bne, and only one comparison instruction, slt. Using just these three instructions (along with the ori instruction to set a to 0 or 1), write (by hand) the MIPS assembly language equivalents for the following
"C" code snippets, assuming that a is stored in register $4, and b is stored in register $5. Remember that in "C", if an expression is true, it evaluates to 1 and if false, it evaluates to 0.
a) a = (a < b);
b) a = (a > b);
c) a = (a == b);
d) a = (a != b);
e) a = (a <= b);
f) a = (a >= b);