nand
NAND
nand RA, RS, RB
Bitwise NAND. RA = ~(RS & RB).
Details
The crnand instruction performs a bitwise AND operation on the bits specified by BA+32 and BB+32 in the Condition Register. The result of this operation is then complemented, and the complemented result is placed into the bit specified by BT+32 in the Condition Register.
Pseudocode Operation
CRBT+32 ←¬(CRBA+32 & CRBB+32)
Programming Note
The crnand instruction is useful for performing bitwise NAND operations on specific bits within the Condition Register. Ensure that the bit positions specified by BA, BB, and BT are valid to avoid undefined behavior. This instruction operates at user privilege level and does not generate exceptions under normal conditions.
Example
nand r4, r3, r5
Encoding
Binary Layout
31
0
RS
6
RA
11
RB
16
476
21
/
31
Operands
-
RA
Target -
RS
Src A -
RB
Src B