This commit is contained in:
Daveo 2000-08-29 19:56:03 +00:00
parent 9ddb9041f3
commit 43fe9e2d08
5 changed files with 267 additions and 0 deletions

24
source/utils/mathmip.mip Normal file
View file

@ -0,0 +1,24 @@
;*******************
;*** MATHMIP.MIP ***
;****************************
include gtereg.h
include source\gfx\gpu.inc
opt at-
section .text
;******************************************************************************
; s32 FixedMul(s32 a, s32 b)
global FixedMul
FixedMul
mult a0,a1
mfhi a3
mflo a2
srl v0,a2,12
sll a0,a3,20
or v0,v0,a0
j ra
nop