Register Figures
Figure A−1. Status register ST0
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0 0 0 0 0
É
0 0 0 0 0 0 0 0 0 0 0
OVC/OVCU PM V N Z C TC OVM SXM
Overflow counter
R/WR/W
Flag is reset
Overflow detected
0
1
Overflow flag
R/W
Sign extension suppressed
Sign extension mode selected
0
1
Sign-extension mode
Product shift mode
Left shift by 1
No shift
Right shift by 1, sign extended
Right shift by 2, sign extended
Right shift by 3, sign extended
Right shift by 4, sign extended
Right shift by 5, sign extended
Right shift by 6, sign extended
0
0
1
1
0
0
1
1
0
0
0
0
1
1
1
1
R/WR/WR/WR/WR/WR/W
Behaves differently for signed and unsigned
operations:
Signed operations (OVC)
Increments by 1 for each positive overflow;
Decrements by 1 for each negative overflow.
Unsigned operations (OVCU)
Increments by 1 for ADD operations that
generate a Carry
Decrements by 1 for SUB operations that
generate a Borrow
0
1
0
1
0
1
0
1
Negative condition false
Negative condition true
0
1
Negative flag
Zero condition false
Zero condition true
0
1
Zero flag
Carry not detected/borrow detected
Carry detected/borrow not detected
0
1
Carry bit
Holds result of test performed
by TBIT or NORM instruction
Test/control flag
Results overflow normally
Overflow mode selected
0
1
ACC overflow mode
Note: For more details about ST0, see section 2.3 on page 2-16.