Logically complements the result of ANDing the contents of two general-purpose registers and stores the result in another general-purpose register.
Bits | Value |
---|---|
0-5 | 31 |
6-10 | RS |
11-15 | RA |
16-20 | RB |
21-30 | 476 |
31 | Rc |
nand | RA, RS, RB |
nand. | RA, RS, RB |
The nand instruction logically ANDs the contents of general-purpose register (GPR) RS with the contents of GPR RB and stores the complement of the result in the target GPR RA.
The nand instruction has two syntax forms. Each syntax form has a different effect on Condition Register Field 0.
Syntax Form | Overflow Exception (OE) | Fixed-Point Exception Register | Record Bit (Rc) | Condition Register Field 0 |
nand | None | None | 0 | None |
nand. | None | None | 1 | LT,GT,EQ,SO |
The two syntax forms of the nand instruction never affect the Fixed-Point Exception Register. If the syntax form sets the Record (Rc) bit to 1, the instruction affects the Less Than (LT) zero, Greater Than (GT) zero, Equal To (EQ) zero, and Summary Overflow (SO) bits in Condition Register Field 0.
# Assume GPR 4 contains 0x9000 3000. # Assume GPR 7 contains 0x789A 789B. nand 6,4,7 # GPR 6 now contains 0xEFFF CFFF.
# Assume GPR 4 contains 0xB004 3000. # Assume GPR 7 contains 0x789A 789B. nand. 6,4,7 # GPR 6 now contains 0xCFFF CFFF.
Fixed-Point Logical Instructions .