Flags

Each flag can individually be set or cleared in the Processor Status Register ('P').  Cleared flags will show up with a normal background.  Set flags will show with an inverse background.


Notes:



Commands to set a flag:

Command

Description

SEC

Set Carry

SEZ

Set Zero

SEI

Set Interrupts Disabled

SED

Set Decimal (BCD) mode

SEB

Set Break

SER

Set Reserved (not used on 6502)

SEV

Set Overflow

SEN

Set Negative



Commands to clear a flag:

Command

Description

CLC

Clear Carry

CLZ

Clear Zero

CLI

Clear Interrupts Disabled

CLD

Clear Decimal (BCD) mode

CLB

Clear Break

CLR

Clear Reserved (not used on 6502)

CLV

Clear Overflow

CLN

Clear Negative