S3C84E5/C84E9/P84E9

INSTRUCTION SET

 

 

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 4EF

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.

6-27

Page 154
Image 154
Samsung S3C84E5 user manual CCF Complement Carry Flag, Ccf, Operation C ← not C, Format Bytes Cycles Opcode Hex