beautypg.com

Motorola DSP96002 User Manual

Page 694

background image

MOTOROLA

DSP96002 USER’S MANUAL

B-175

move d0.l,d7.m ;

move d0.m,d0.l ;

dec d0 ;

move d0.l,d0.m ;

jclr #31,d7.m,_op2nrm ;

_domul

; ****** Initial Exponent Processing ******

move d0.m,d0.l ;

move d1.m,d1.l ;

add d0,d1 ;

inc d1 ;

move d1.l,d0.m ;

; ****** Calculate Partial Products (A:B * C:D) ******

mpyu d6,d7,d2 ;

move d6.m,d0.l ;

mpyu d0,d7,d3 ;

move d7.m,d1.l ;

mpyu d1,d6,d4 ;

mpyu d0,d1,d5 ;

; ****** Sum Partial Products ******

move #0,d1.h ;

tst d2 d2.m,d0.l ;

jeq _addpps ;

move #1,d1.h ;

_addpps

add d0,d3 ;

rol d1 d3.m,d2.l ;

add d4,d3 d4.m,d0.l ;

addc d2,d0 ;

rol d2 ;

ror d1 d5.m,d4.l ;

addc d0,d5 ;

move #0,d0.l ;

addc d0,d4 ;

ror d2 ;

addc d0,d4 ;

; At this point,

; d4.l = most significant 32 bits,