/
CML
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.
, multiple selections available,
Related content
MUL (BINARY)
MUL (BINARY)
More like this
ADD (BINARY)
ADD (BINARY)
More like this
BMUL (BCD)
BMUL (BCD)
More like this
NEG
NEG
More like this
SUB (BINARY)
SUB (BINARY)
More like this
SUB (BCD)
SUB (BCD)
More like this