CLD

From C64-Wiki
Jump to navigationJump to search
Disambiguation The title of this article is ambiguous. CLD (Disambiguation).

CLD (short for "CLear Decimal flag") is the mnemonic for a machine language instruction which clears the decimal flag. It complements the SED (set decimal flag) instruction.

Addressing mode[edit | edit source]

Opcode Addressing
mode
Assembler
format
Length
in bytes
Number of
cycles
Dec Hex
216 D8 Implied CLD 1 2

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

CPU flags[edit | edit source]

CLD affects no processor status flags other than the decimal flag.

Examples[edit | edit source]

See SED examples.