Renesas Electronics
SETPSW
Setting a flag or bit in the PSW
SET flag of PSW
[Syntax]
SETPSW dest
[Operation]
dest = 1;
[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 in the PSW will be ignored. In supervisor mode, all flags and bits can be written to.
[Instruction Format]
Syntax
Operand
Code Size
(Byte)
dest
flag
2
[Flag Change]
Flag
C
Z
S
O
Change
*
Note
* The specified flag is set to 1.
[Description Example]
SETPSW C
SETPSW Z