SCF
General Purpose Arithmetic and CPU Control Group
Expansion:
Set Carry Flag
Usage:
scf
Sets the (C)arry flag to 1.
Note, there are no direct commands for setting the (C)arry flag to zero. This can be accomplished via the OR A instruction.
| Instruction | Description | Opcode |
|---|---|---|
| SCF | Set the carry flag to 1 | 37 |
Example
; Example
scf