I have the following bit of MIPS assembly, run on the MARS simulator, given below:
.data
x: .space 4 # 4 bytes = 32 bits
li $v0, 6
syscall
At this point, the floating point value I need is in $f0
, but I need to move the value to x
. If I could transfer the contents of the floating point register $f0
to $t0
, I would be able to do this. Is this possible? If not, what is the workaround?