Intel 8XC251SA User Manual page 99

Embedded microcontroller
Hide thumbs Also See for 8XC251SA:
Table of Contents

Advertisement

Table 5-10. The Effects of Instructions on the PSW and PSW1 Flags
Instruction Type
ADD, ADDC, SUB,
SUBB, CMP
INC, DEC
Arithmetic
MUL, DIV (3)
DA
ANL, ORL, XRL, CLR A,
CPL A, RL, RR, SWAP
Logical
RLC, RRC, SRL, SLL,
SRA (4)
CJNE
Program Control
DJNE
NOTES:
1.
X = the flag can be affected by the instruction.
0 = the flag is cleared by the instruction.
2.
The AC flag is affected only by operations on 8-bit operands.
3.
If the divisor is zero, the OV flag is set and the other bits are meaningless.
4.
For SRL, SLL, and SRA instructions, the last bit shifted out is stored in the CY bit.
5.
The parity bit (PSW.0) is set or cleared by instructions that change the contents of the
accumulator (ACC, Register R11).
Instruction
CY
X
0
X
X
X
PROGRAMMING
Flags Affected (1), (5)
OV
AC (2)
N
X
X
X
X
X
X
X
X
X
X
X
Z
X
X
X
X
X
X
X
X
5-17

Advertisement

Table of Contents
loading

This manual is also suitable for:

8xc251sb8xc251sp8xc251sq

Table of Contents