Xchg, Applicable program areas operands, Flags function – Omron SYSMAC CP CP1E-N@@D@-@ User Manual
Page 157: 2 instructions, Operand specifications

2-121
2 Instructions
CP1E CPU Unit Instructions Reference Manual(W483)
D
a
ta Mo
vem
ent I
n
stru
ctio
ns
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
OK
OK
OK
OK
OK
OK
OK
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
E2
E1