SBSPSS/source/utils/mathmip.mip
2000-09-11 15:34:59 +00:00

25 lines
364 B
Plaintext

;*******************
;*** MATHMIP.MIP ***
;****************************
include gtereg.h
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