Download 620 WinLoader, Version 5.4, User Manual

Transcript
3.9
AND
Logical Operator Instructions, Continued
Refer to Table 3-47 for AND specifications.
Table 3-47 AND Specifications
SPECIFICATION
DESCRIPTION
CPM
Compatibility
620-11/12/14/1631/1633/36 LCs
Symbol
Usage
Characteristics
Performs AND operation on two 16-bit data words
(see Figure 3-40).
• Each bit of one word is ANDed with corresponding bit
position in other; for example:
– bit position zero is always ANDed with bit position
zero;
– bit position seven is always ANDed with bit position
seven;
– and so on.
• Data manipulation instructions are used to place the two
words onto stack; AND instruction tells processor to:
– AND last word placed on stack with next word placed
there;
– then to write results of operation back to stack;
– resulting word can then be read from stack by another
data manipulation instruction and used as any other
16-bit data.
• Operates on 16-bit integer data only.
Programming
keystrokes
Perform the following steps to program an AND
instruction in a line of logic.
Step
1
2
3
Action
Press [F9] to select Operators Logic
Group.
Press [F8] to select Logical Operators
Logic Group.
Press [F1] to select AND instruction.
Continued on next page
4/05
620 WinLoader Programming Reference
49