Ccf Complement Carry Flag - Samsung S3P80C5 User Manual

8-bit cmos microcontrollers
Table of Contents

Advertisement

S3P80C5/C80C5/C80C8
CCF
— Complement Carry Flag
CCF
C ← NOT C
Operation:
The carry flag (C) is complemented. If C = "1", the value of the carry flag is changed to logic
zero; if C = "0", the value of the carry flag is changed to logic one.
Flags:
C: Complemented.
No other flags are affected.
Format:
opc
Example:
Given: The carry flag = "0":
CCF
If the carry flag = "0", the CCF instruction complements it in the FLAGS register (0D5H),
changing its value from logic zero to logic one.
Bytes
Cycles
Opcode
1
4
INSTRUCTION SET
(Hex)
EF
6-27

Advertisement

Table of Contents
loading

This manual is also suitable for:

S3c80c5S3c80c8

Table of Contents