changed div to mul, it always runs now

This commit is contained in:
someone2639
2021-10-02 23:26:21 -04:00
committed by thecozies
parent ab67e9be4d
commit 2d7aa1e514

View File

@@ -8,18 +8,16 @@
.balign 32
glabel mtxf_to_mtx_asm
li.s $f6, 4.0
li.s $f6, 0.25
li.s $f8, 1.0
li $v0, 1
li.s $f4, 65536.0
// flags will never update in this loop, so do the compare only once.
// if this ever breaks contact someone2639, and then maybe MIPS Technologies, Inc.
c.eq.s $f6, $f8
1:
lwc1 $f0, ($a1)
lwc1 $f2, 0x04($a1)
bc1f 3f
2:
mul.s $f0, $f6
mul.s $f2, $f6
andi $t0, $v0, (1 << 1)
mul.s $f0, $f4
trunc.w.s $f0, $f0
@@ -51,8 +49,4 @@ storezero:
sh $zero, 0x02($a0)
sh $zero, 0x22($a0)
j loopend
3:
div.s $f0, $f6
div.s $f2, $f6
b 2b