Motorola DSP96002 User Manual

Page 706

Advertising
background image

MOTOROLA

DSP96002 USER’S MANUAL

B-187

jmp echeck

;

; MOTOROLA DSP96002 DPLIB - VERSION 1.0
;
; DP_CLR - Set the double precision number to zero.

;

; Entry point: dp_clr: c(r0) = 0

;

; Inputs: r0 contains the lowest address of a 4-word internal

; extended precision number

;

; Outputs: r0 contains the lowest address of a 4-word internal

; extended precision number

;

; Alters: D0.L

;

dp_clr clr d0.l ;get a 0

move d0.l,x:(r0)

move d0.l,x:(r0+sign)

move d0.l,x:(r0+ms)

move d0.l,x:(r0+ls)

rts

page

;

; MOTOROLA DSP96002 DPLIB - VERSION 1.0
;
; DP_CMP - Compare the two double precision numbers.

;

; Entry point: dp_cmp: c(r0)-c(r1) (set condition codes)

;

; Inputs: r0 contains the lowest address of the 4-word internal

; extended precision number

;

; 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. The other branch conditions should not

; be used.

;

; "cc" Mnemonic Condition

; EQ - equal Z = 1

Advertising