stc

Set carry flag

Sets the carry flag (CF) to 1.

8086 and later

Intel's reference: STC

CFPFAFZFSFDFOF 1––––––
  • 1 always 1
  • – not changed

Forms

  • stc

clc clears it and cmc inverts it.

global _start

section .text
_start:
        mov rax, 12
        mov rbx, 5
        mov rcx, 3
        mov rsi, 9

        stc

        mov rax, 60         ; syscall 60: exit
        xor rdi, rdi
        syscall