DS80C320-ECD DALLAS [Dallas Semiconductor], DS80C320-ECD Datasheet - Page 66

no-image

DS80C320-ECD

Manufacturer Part Number
DS80C320-ECD
Description
High-Speed Microcontroller User Guide
Manufacturer
DALLAS [Dallas Semiconductor]
Datasheet
PROGRAM STATUS FLAGS
All Program Status Flags are contained in the Program Status Word at SFR location D0h. It contains
flags that reflect the status of the CPU and the result of selected operations. The flags are summarized
below. The following table shows the instructions that affect each flag.
Bit Description :
PSW.7
Carry
PSW.6
Auxiliary Carry
PSW.2
Overflow
PSW.0
Parity
All of these bits are cleared to a logic 0 for all resets.
INSTRUCTIONS THAT AFFECT FLAG SETTINGS Table 4-4
X indicates the modification is according to the result of the instruction.
ADD
ADDC
SUBB
MUL
DIV
DA
RRC
RLC
SETB C
INSTRUCTION
X
X
X
X
X
X
C
0
0
1
FLAGS
C
Set when the previous operation resulted in a carry (during addition) or a
borrow (during subtraction), otherwise cleared.
AC
Set when the previous operation resulted in a carry (during addition) or a
borrow (during subtraction) from the high order nibble. Otherwise cleared.
OV
Set when a carry was generated into the high order bit but not a carry out of
the high order bit. OV is normally used with 2’s complement arithmetic.
P
Set to logic 1 to indicate an odd number of ones in the accumulator (odd
parity). Cleared for an even number of ones. This produces even parity.
OV
X
X
X
X
X
AC
X
X
X
CLR C
CPL C
ANL C, bit
ANL C,
ORL C, bit
ORL C,
MOV C, bit
CJNE
INSTRUCTION
66 of 175
bit
bit
High-Speed Microcontroller User’s Guide
C
X
X
X
X
X
X
X
0
FLAGS
OV
AC

Related parts for DS80C320-ECD