Omron CP1E-N@@D@-@ Computer Hardware User Manual


 
2-121
2 Instructions
CP1E CPU Unit Instructions Reference Manual(W483)
Data Movement Instructions
2
XCHG
XCHG
Applicable Program Areas
Operands
Operand Specifications
Flags
Function
Instruction Mnemonic Variations
Function
code
Function
DATA EXCHANGE XCHG @XCHG 073
Exchanges the contents of the two specified
words.
Symbol
XCHG
Area Step program areas Subroutines Interrupt tasks
Usage OK OK OK
Operand Description Data type Size
E1 First exchange word WORD 1
E2 Second exchange word WORD 1
Area
Word addresses Indirect DM addresses
Constants CF Pulse bits TR bits
CIO WR HR AR T C DM @DM *DM
E1,E2 OKOKOKOKOKOKOK OK OK --- --- --- ---
Name Label Operation
Error Flag P_ER Unchanged
Equals Flag P_EQ Unchanged
Negative Flag P_N Unchanged
XCHG(073) exchanges the contents of E1 and E2.
XCHG(073)
E1
E2
E1: First exchange word
E2: Second exchange word
E2E1