SBSPSS/source/utils/mathmip.mip

25 lines
364 B
Plaintext
Raw Normal View History

2000-08-29 21:56:03 +02:00
;*******************
;*** MATHMIP.MIP ***
;****************************
include gtereg.h
2000-09-11 17:34:59 +02:00
2000-08-29 21:56:03 +02:00
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