NEC V850ES/F 3-L Series User Manual page 142

32-bit single-chip microcontroller
Table of Contents

Advertisement

Chapter 3
Table 3-5
Bit position
Flag
2
1
0
a)
In the case of saturate instructions, the SAT, S, and OV flags will be set according to the result of the operation
as shown in the table below. Note that the SAT flag is set only when the OV flag has been set during a satu-
rated operation.
Saturated operation
instructions
Table 3-6
142
PSW register contents (2/2)
Overflow flag.
Indicates whether an overflow occurred as a result of the operation.
a
OV
0: Overflow did not occur.
1: Overflow occurred.
Sign flag.
Indicates whether the result of the operation is negative.
a
S
0: Result is positive or zero.
1: Result is negative.
Zero flag.
Indicates whether the result of the operation is zero.
Z
0: Result is not zero.
1: Result is zero.
The following table shows the setting of flags PWS.SAT, PWS.OV, and PWS.S,
depending on the status of the operation result.
Saturation-processed operation result
Status of operation result
Maximum positive value exceeded
Maximum negative value exceeded
Positive (maximum not exceeded)
Negative (maximum not exceeded)
a)
Retains the value before operation.
User's Manual U18743EE1V2UM00
CPU System Functions
Function
Flag status
Saturation-processed
operation result
SAT
OV
S
1
1
0
7FFF FFFF
1
1
1
8000 0000
0
Operation result itself
a
x
0
1
H
H

Advertisement

Table of Contents
loading

Table of Contents