I was practicing converting C code into MIPS assembly language, and am having trouble understanding the usage of move and li in variable assignment.
For example, to implement the following C line in MIPS:
int x = 0;
If I understand it …
I am new to Assembly language. I was reading about MIPS architecture and I am stuck with Jump Target Address and Branch Target Address and how to calculate each of them.
Given two registers $s0, $s1, how can I convert the following pseudocode into MIPS assembly language using only the slt (set on less than) and beq and bne (branch if equal, branch if not equal) instructions.
if ($s0 > $s1) { …