BISPSW and BICPSW Instruction

Purpose:To set or clear trap enables
Format:opcode mask.rw
Operation: BISPSW PSW <- PSW OR mask;
BICPSW PSW <- PSW AND NOT mask;
Condition
Codes:
BISPSW
N <- N OR mask<3>
Z <- Z OR mask<2>
V <- V OR mask<1>
C <- C OR mask<0>
BICPSW
N <- N AND NOT mask<3>
Z <- Z AND NOT mask<2>
V <- V AND NOT mask<1>
C <- C AND NOT mask<0>
Exceptions:Reserved Operand
Opcodes:
B8BISPSWBit Set PSW
B9BICPSWBit Clear PSW
Description: On BISPSW, the PSW is ORed with the 16 bit mask operand and the PSW is replaced by the result.

On BICPSW, the PSW is ANDed with the ones complement of the 16 bit mask operand and the PSW is replaced by the result.

Notes: A reserved operand fault occurs if the mask bit 15:8 are not zero. On a reserved operand fault, the PSW is not affected.