CML

CML, CMLP, DCML, DCMLP

 

CML instruction negates the value of source and moves it to the Destination (assigned device address).

If you negate 0, the result is 1. If you negate 1, the result is 0.

 

 

S

Source

D

Destination

 

Instruction

Device address

No. of Steps

Flag

M

X

Y

K

L

F

T

C

S

Z

D

@D

Int.

 

Error

Zero

Carry

CML(P)

DCML(P)

S

o

o

o

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 CMLP instruction negates the value of Y00 value and saves the result in Y100.