Each flag can individually be set or cleared on the Processor Status Register ('P'). Cleared flags will show up with a normal background. Set flags will show with an inverse background.
Notes:
The legacy commands R? and S?, where? is a flag name (C,Z,I,D,B,R,V,N) has been left in.
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 |