SEC

From C64-Wiki
Jump to navigationJump to search

SEC (short for "SEt Carry") is the mnemonic for a machine language instruction which unconditionally sets the carry flag.

Addressing mode[edit | edit source]

Opcode Addressing
mode
Assembler
format
Length
in bytes
Number of
cycles
Dec Hex
56 38 Implied SEC 1 2

SEC only supports the Implied addressing mode, as shown in the table at right.

CPU flags[edit | edit source]

SEC affects no other processor status flags other than the carry flag, which is always unconditionally set.