I am trying to write a MIPS program that will add two floating point integers togerther, the first floating point integer is the two's complement of -8.0
the second is the floating pointinteger 2.0
so first I changed -8 to two's compliment which is 1000 then I converted that to hex so my hex would be 0x00000008
my MIPS program so far looks like this
l.s $f1, 0x00000008
l.s $f2, 15.0
add.s $f0, $f1, $f2
I get an error on this obviously any help?
Also I am confused when loading in floating integers in the commant l.s $f2, 15.0 I know this is not right. how can I load 15 into the registry as a floating point? and again my ultimate question how can I add the two together using MIPS. thanks,