User manual

Instruction Set
Logical 3-22
Logical Instructions
Instruction Description
AND When the input conditions are true, the processor evaluates an AND operation (bit-by-bit)
between Source A (D9:3) and Source B (D9:4) and stores the result in the Destination (D9:5).
The truth table for an AND operation is:
Source A Source B Result
000
100
010
111
NOT Operation When the input conditions are true, the processor performs a NOT (takes the opposite of)
operation (bit-by-bit) on the Source (D9:3) and stores the result in the Destination (D9:5). The
truth table for a NOT operation is:
Source Destination
01
10
BITWISE AND
Source A D9:3
3F37
Source B D9:4
00FF
Dest D9:5
0037
AND
NOT
Source A D9:3
00FF
Destination D9:5
FF00
NOT
Status Bit Description
Calways resets
Valways resets
Z sets if the result is zero; otherwise resets
S sets if the most significant bit (bit 15 for decimal or bit 17 for octal) is set (1); otherwise resets