CLRPSW

Clear a flag or bit in the PSW

CLRPSW

CLeaR flag in PSW


[Syntax]

CLRPSW dest

 

[Operation]

dest = 0;

 

[Function]

-

This instruction clears the O, S, Z, or C flag, which is specified by dest, or the U or I bit.

-

In user mode, writing to the U or I bit is ignored. In supervisor mode, all flags and bits can be written to.

 

[Instruction Format]

Syntax

dest

Code size

(Byte)

CLRPSW dest

flag

2

[Flag Change]

Flag

C

Z

S

O

Change

*

*

*

*

Note

* The specified flag becomes 0.

 

[Description Example]

CLRPSW C

CLRPSW Z