B-54
DSP96002 USER’S MANUAL
MOTOROLA
9. Dynamic bit field clear. Register d1.l contains FOFF, d2.l contains
FSIZE.
Program
ICycles
Words
move #32,d3.l ;register size 1 1 sub
d2,d3 #-1,d2.l ;32-fsize, get 1s mask 2 2 move
d3.l,d3.h ;move shift count 1 1 lsr d3,d2 d1.l,d1.h
;trim mask, get foff 1 1 lsl d1,d2 ;align
mask 1 1 andc d2,d0 ;invert mask
and clear 1 1
--- ---
Totals: 7 7
10. Dynamic bit field set. Register d1.l contains FOFF, d2.l contains FSIZE.
Program
ICycles
Words
move #32,d3.l ;register size 1 1 sub
d2,d3 #-1,d2.l ;32-fsize, get 1s mask 2 2 move
d3.l,d3.h ;move shift count 1 1 lsr d3,d2 d1.l,d1.h
;trim mask, get foff 1 1 lsl d1,d2 ;align
mask 1 1 or d2,d0 ;clear bit
field 1 1
--- ---
Totals: 7 7
B.1.29 Newton-Raphson Approximation for 1.0/SQRT(x)
The Newton-Raphson iteration can be used to approximate the function:
1.0
y= -------
sqrt(x)
by minimizing the function:
1.0
F(y) = x - -------
y*y
Given an initial approximate value y=1/sqrt(x), the Newton-Raphson iteration for refining the estimate is:
y(n+1)=y(n)*(3.0-x*y*y)/2.0
Newton-Raphson Approximation
Program
ICycles
of 1.0/SQRT(x)
Words
Summary of Contents for DSP96002
Page 3: ...1 2 DSP96002 USER S MANUAL MOTOROLA ...
Page 38: ...MOTOROLA DSP96002 USER S MANUAL 3 15 Figure 3 4 Modulo Arithmetic Unit Block Diagram ...
Page 39: ...3 16 DSP96002 USER S MANUAL MOTOROLA ...
Page 53: ...4 14 DSP96002 USER S MANUAL MOTOROLA ...
Page 76: ...MOTOROLA DSP96002 USER S MANUAL 5 23 Figure 5 8 Address Modifier Summary ...
Page 86: ...6 10 DSP96002 USER S MANUAL MOTOROLA ...
Page 101: ...MOTOROLA DSP96002 USER S MANUAL 7 15 Figure 7 9 HI Block Diagram One Port ...
Page 140: ...7 54 DSP96002 USER S MANUAL MOTOROLA ...
Page 166: ...9 10 DSP96002 USER S MANUAL MOTOROLA ...
Page 181: ...MOTOROLA DSP96002 USER S MANUAL 10 15 Figure 10 8 Program Address Bus FIFO ...
Page 337: ...MOTOROLA DSP96002 USER S MANUAL A 149 ...
Page 404: ...A 216 DSP96002 USER S MANUAL MOTOROLA PC xxxx D ...
Page 460: ...A 272 DSP96002 USER S MANUAL MOTOROLA SIOP Not affected ...
Page 484: ...A 296 DSP96002 USER S MANUAL MOTOROLA SSH PC SSL SR SP 1 SP ...
Page 519: ...MOTOROLA DSP96002 USER S MANUAL A 331 ...
Page 718: ...MOTOROLA DSP96002 USER S MANUAL B 199 ...
Page 871: ... MOTOROLA INC 1994 MOTOROLA TECHNICAL DATA SEMICONDUCTOR M Addendum ...
Page 888: ...MOTOROLA INDEX 1 INDEX ...
Page 889: ......