For my task, I have to perform the multiplication of 2 floating point values in a double data type. So, after multiplying 2 values, I had problems in the code with saving the value and printing. I think the code is correct, but MARS doesn't think so. Because, the compiler tells me, that "s.s": Too many or incorrectly formatted operands. Expected: s.s $f1,($t2). So can you explain to me, what's going on?
.data
a: .float 2.5
b: .float 2.5
result: .float 0.0
fmt: .asciiz "%f\n"
.text
.globl main
.ent main
main:
l.s $f12, a
l.s $f14, b
mul.s $f16, $f12, $f14
#Here troble is appearing
s.s result, $f16
li $v0, 2
la $a0, result
syscall
li $v0, 4
la $a0, fmt
syscall
li $v0, 10
syscall
.end main