MIPS errors and operation -
#if true perform matrix operation mul.s $f7, $f5, $f6 #m * a[d][c] add.s f7, $f7, $f5 #add (m*a[d][c])+col c div.s $f5, $f4, $f2 #divide -a[r][d]/a[d][d] , store m move $f3, $zero #setting [r][d] = 0
i'm receiving errors on add.s
, mov
register lines. help?
you're missing $
-sign on line add.s f7, $f7, $f5
. should add.s $f7, $f7, $f5
.
i don't know how assembler handles move
instructions floating-point registers (or if does), i'd suggest using mtc1 $zero,$f3
instead. you'd follow cvt.s.w
or cvt.d.w
convert value floating point, in case of 0 isn't necessary.
Comments
Post a Comment