I am getting into MIPS programming and one of my homework problems requires me to write the corresponding C code for given MIPS instructions. The MIPS instruction I am getting confused about is
I am under the impression that the first line would not matter since f is going to get overwritten once the second line exectues. I would think the answer to this would then be
Am I right in this assumption, or is there something easy that I am missing? Thanks in advance
Rich (BB code):
addi f,f,1
add f,g,h
Rich (BB code):
f = g + h;