Stereo System User Manual

MOTOROLA DSP96002 USER’S MANUAL A - 41
BFIND Find Leading One BFIND
Instruction Fields:
Dddd
Dn.H n n n where nnn = 0-7
Ssss
Dn.L n n n where nnn = 0-7
Timing: 2 + mv oscillator clock cycles
Memory: 1 + mv program words
11 0sss 0111 1ddd
31 14 13 0
OPTIONAL EFFECTIVE ADDRESS EXTENSION OR IMMEDIATE LONG DATA
DATA BUS MOVE FIELD
Operation:
Leading One(S.L) D.H (Parallel data bus move)
Assembler Syntax:
BFIND S,D (move syntax - see the MOVE in-
struction description.)
Description:
Return the position of the source operand S leading one, considered from left to right, as a 2’s complement
integer in the high portion of destination operand D. If the source operand is zero then return $80000000.
Input Operand(s) Precision: 32-bit integer.
Output Operand Precision: 32-bit integer.
CCR Condition Codes:
C - Not affected.
V - Always cleared.
Z - Set if source operand is zero. Cleared otherwise.
N - Set if source operand is negative. Cleared otherwise.
I - Not affected.
LR - Not affected.
R - Not affected.
A - Not affected.
ER Status Bits: Not affected.
IER Flags: Not affected.
Instruction Format: BFIND S,D (move syntax - see the MOVE instruction description.)