ADSP-BF53x/BF56x Blackfin Processor Programming Reference
11-3
Control Code Bit Management
Instruction Length
In the syntax, comment (a) identifies 16-bit instruction length.
Functional Description
The Compare Data Register instruction sets the Control Code (
CC
) bit
based on a comparison of two values. The input operands are D-registers.
The compare operations are nondestructive on the input operands and
affect only the
CC
bit and the flags. The value of the
CC
bit determines all
subsequent conditional branching.
The various forms of the Compare Data Register instruction perform
32-bit signed compare operations on the input operands or an unsigned
compare operation, if the
(IU)
optional mode is appended. The compare
operations perform a subtraction and discard the result of the subtraction
without affecting user registers. The compare operation that you specify
determines the value of the
CC
bit.
Flags Affected
The Compare Data Register instruction uses the values shown in
Table 11-1
in signed and unsigned compare operations.
Table 11-1. Compare Data Register Values
Comparison
Signed
Unsigned
Equal
AZ=1
n/a
Less than
AN=1
AC0=0
Less than or equal
AN or AZ=1
AC0=0 or AZ=1
Summary of Contents for ADSP-BF53x Blackfin
Page 38: ...Conventions xxxviii ADSP BF53x BF56x Blackfin Processor Programming Reference...
Page 134: ...System Reset and Powerup 3 18 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Page 324: ...Instruction Overview 7 20 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Page 486: ...Instruction Overview 13 28 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Page 512: ...Instruction Overview 14 26 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Page 604: ...Instruction Overview 15 92 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Page 688: ...Instruction Overview 18 48 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Page 742: ...Instruction Overview 19 54 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Page 752: ...Examples 20 10 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Page 790: ...ADSP BF535 Flags A 10 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Page 800: ...Performance Monitor Registers B 10 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Page 1042: ...Index I 40 ADSP BF53x BF56x Blackfin Processor Programming Reference...