I have loaded a float point double precission number in two $t registers, now I want to divide it by (-4) (not using fp instructions) and store it back into the $f register.
mfc1 $t0, $f0 #$f0 = 0x00000000
mfc1 $t1, $f1 #$f1 = 0x40240000
div $t1, $t1, -4
mfhi $t0 #move the remainder to $t0
mflo $t1 #move the quotient to $t1
mtc1 $t0, $f0
mtc1 $t1, $f1
# store the $f0 result in memory
# print X/(-4)
mov.d $f12, $f0
li $v0, 3
syscall
but this gives very unexpected result which is -2.231744757682269E231
any help will be appreciated.