![Samsung S3F84B8 Скачать руководство пользователя страница 148](http://html.mh-extra.com/html/samsung/s3f84b8/s3f84b8_user-manual_347832148.webp)
S3F84B8_UM_REV 1.00
6 INSTRUCTION SET
6-26
6.3.14 CCF — COMPLEMENT CARRY FLAG
CCF
Operation
: C
NOT C
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
:
Bytes Cycles
Opcode
(Hex)
opc
1 4 EF
Example
:
Given the carry flag is equal to “0”:
CCF
If the carry flag is equal to “0”, the CCF instruction complements it in the FLAGS register (0D5H),
changing its value from logic zero to logic one.