assembly - MIPS floating point add -
i'm trying make simple function adds floats passed arguments in mips. did simple code add ints:
move v0,a0 add v0,v0,a1 j ra
copying did alike floats
l.d $f0,0($a0) l.d $f2,0($a1) add.d $f0,$f0,$f2 j ra
which results in compiling error:
error: illegal operands `l.d'
which i'm guessing because of how i'm trying arguments a0. how suppossed receive double floating point arguments, adding them , returning them.
thanks in advance
try ldc1
instead of l.d
. l.d
macro , reason it's not defined/available.
Comments
Post a Comment