Carry (Bit 0); Overflow (Bit 1); Zero (Bit 2); Negative (Bit 3) - Motorola DSP56000 Manual

24-bit digital signal processor
Hide thumbs Also See for DSP56000:
Table of Contents

Advertisement

The CCR is a special purpose control register that defines the current user state of the
processor. The CCR bits are affected by data arithmetic logic unit (ALU) operations, par-
allel move operations, and by instructions that directly reference the CCR (ORI and
ANDI). The CCR bits are not affected by parallel move operations unless data limiting oc-
curs when reading the A or B accumulators. During processor reset, all CCR bits are
cleared.
5.4.2.1

Carry (Bit 0)

The carry (C) bit is set if a carry is generated out of the MSB of the result in an addition.
This bit is also set if a borrow is generated in a subtraction. The carry or borrow is gener-
ated from bit 55 of the result. The carry bit is also affected by bit manipulation, rotate, and
shift instructions. Otherwise, this bit is cleared.
5.4.2.2

Overflow (Bit 1)

The overflow (V) bit is set if an arithmetic overflow occurs in the 56-bit result. This bit indi-
cates that the result cannot be represented in the accumulator register; thus, the register
has overflowed. Otherwise, this bit is cleared.
5.4.2.3

Zero (Bit 2)

The zero (Z) bit is set if the result equals zero; otherwise, this bit is cleared.
5.4.2.4

Negative (Bit 3)

The negative (N) bit is set if the MSB (bit 55) of the result is set; otherwise, this bit is
cleared.
5.4.2.5

Unnormalized (Bit 4)

The unnormalized (U) bit is set if the two MSBs of the most significant product (MSP)
portion of the result are identical. Otherwise, this bit is cleared. The MSP portion of the A
or B accumulators, which is defined by the scaling mode and the U bit, is computed as
follows:
5 - 10
PROGRAMMING MODEL
S1
S0
Scaling Mode
0
0
No Scaling
0
1
Scale Down
1
0
Scale Up
PROGRAM CONTROL UNIT
U Bit Computation
U = (Bit 47
Bit 46)
U = (Bit 48
Bit 47)
U = (Bit 46
Bit 45)
MOTOROLA

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dsp56k

Table of Contents