Motorola DSP96002 User Manual page 706

32-bit digital signal processor
Table of Contents

Advertisement

jmp
;
; MOTOROLA DSP96002 DPLIB - VERSION 1.0
;
; DP_CLR - Set the double precision number to zero.
;
; Entry point:
;
; Inputs:
r0 contains the lowest address of a 4-word internal
;
;
; Outputs:
r0 contains the lowest address of a 4-word internal
;
;
; Alters:
D0.L
;
dp_clr
clr
move
move
move
move
rts
page
;
; MOTOROLA DSP96002 DPLIB - VERSION 1.0
;
; DP_CMP - Compare the two double precision numbers.
;
; Entry point:
;
; Inputs:
r0 contains the lowest address of the 4-word internal
;
;
; Outputs:
none
;
; CCR CONDITION CODES:
;
;
C - NOT AFFECTED.
;
V - ALWAYS CLEARED
;
Z - SET IF RESULT IS ZERO, CLEARED OTHERWISE.
;
N - SET IF RESULT IS NEGATIVE, CLEARED OTHERWISE.
;
I - NOT AFFECTED.
;
LR - NOT AFFECTED.
;
R - NOT AFFECTED.
;
A - NOT AFFECTED.
;
;
The following Jcc branch conditions can be used after
;
calling dp_cmp.
;
be used.
;
;
"cc" Mnemonic
;
EQ - equal
MOTOROLA
echeck
dp_clr:
c(r0) = 0
extended precision number
extended precision number
d0.l
d0.l,x:(r0)
d0.l,x:(r0+sign)
d0.l,x:(r0+ms)
d0.l,x:(r0+ls)
dp_cmp:
c(r0)-c(r1)
extended precision number
The other branch conditions should not
DSP96002 USER'S MANUAL
;get a 0
(set condition codes)
Condition
Z = 1
B-187

Advertisement

Table of Contents
loading

Table of Contents