SEC

From C64-Wiki
Jump to: navigation, search

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

Addressing mode[edit]

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]

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