ZiLOG Z8 PLUS User Manual page 67

Table of Contents

Advertisement

Instruction Format:
CCF
Operation:
C ← NOT C
The C flag is complemented. If C = 1, then it is changed to C = 0; or, if C = 0, then it is changed to C = 1.
Flags:
When the instruction is executed, the flags are set as follows:
C:
The value set by the preceding instruction is complemented.
Z:
The value set by the preceding instruction.
S:
The value set by the preceding instruction.
V:
The value set by the preceding instruction.
D:
The value set by the preceding instruction.
H:
The value set by the preceding instruction.
Example: The C flag contains a 0. The following statement changes the C flag from C = 0 to C = 1.
CCF
Op Code: EF
OPC (Hex)
EF
OPC
.75
P
Â
Complement Carry Flag
CCF

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Z8 PLUS and is the answer not in the manual?

Questions and answers

Table of Contents