XCH

XCH, XCHP, DXCH, DXCHP

 

XCH instruction exchanges between the data of source 1 and source 2.

 

 

S

Source 1

D

Source 2

 

Instruction

Device address

No. of Steps

Flag

M

X

Y

K

L

F

T

C

S

Z

D

@D

Int.

 

Error

Zero

Carry

XCH(P)

DXCH(P)

S

o

-

o

o

o

-

o

o

-

o

o

o

-

3

o

-

-

D

o

-

o

o

o

-

o

o

-

o

o

o

-

 

Example)

If X01 is ON, the XCH instruction exchanges between M00 and M10.