Status Register (ST0)
2-32
OVM
Bit 1
Overflow mode bit.
When ACC accepts the result of an addition or subtraction and the
result causes an overflow, OVM determines how the CPU handles the overflow as fol-
lows:.
0
Results overflow normally in ACC. The OVC reflects the overflow (see the de-
scription for the OVC on page 2-16)
1
ACC is filled with either its most positive or most negative value as follows:
If ACC overflows in the positive direction (from 7FFF
FFFF
16
to 8000
0000
16
),
ACC is then filled with 7FFF
FFFF
16
.
If ACC overflows in the negative direction (from 8000
0000
16
to 7FFF
FFFF
16
),
ACC is then filled with 8000
0000
16
.
This bit can be individually set and cleared by the SETC OVM instruction and
CLRC OVM instruction, respectively. At reset, OVM is cleared.
SXM
Bit 0
Sign-extension mode bit.
SXM affects the MOV, ADD, and SUB instructions that use a
16-bit value in an operation on the 32-bit accumulator. When the 16-bit value is loaded
into (MOV), added to (ADD), or subtracted from (SUB) the accumulator, SXM deter-
mines whether the value is sign extended during the operation as follows:
0
Sign extension is suppressed. (The value is treated as unsigned.)i
1
Sign extension is enabled. (The value is treated as signed.)
SXM also determines whether the accumulator is sign extended when it is shifted right
by the SFR instruction. SXM does not affect instructions that shift the product register
value; all right shifts of the product register value use sign extension.
This bit can be individually set and cleared by the SETC SXM instruction and
CLRC SXM instruction, respectively. At reset, SXM is cleared. Table 2
structions that are affected by SXM. See Chapter 6 for more details on instructions.
Summary of Contents for TMS320C28x
Page 30: ...1 12...
Page 80: ...This page intentionally left blank 2 50 This page intentionally left blank...
Page 269: ...IN loc16 PA 6 112 MOV AL 0 AL 0 UOUT IORegC AL IOspace IORegC AL 10...
Page 308: ...MAXCUL P loc32 6 151 Saturate MOVL Var64 2 ACC Store result into Var64 MOVL Var64 P...
Page 509: ...SUBL ACC P PM 6 352 SUBL ACC P PM ACC S B 11 M X 4 MOVH Y ACC 5 Store Q15 result into Y...
Page 585: ...This page intentionally left blank 7 32 This page intentionally left blank...