
6F3B0253
7. Instructions
FUN 183
DNEG
Double-word 2’s complement
Expression
Input − [ A+1⋅A DNEG B+1⋅B ]− Output
Function
When the input is ON, this instruction finds the 2’s complement value of
Execution condition
Input |
| Operation | Output |
OFF | No execution |
| OFF |
ON | Execution |
| ON |
Operand
| Name |
|
| Device |
|
|
|
|
|
|
|
| Register |
|
| Constant | Index | ||||
|
| X | Y | R | S | T. | C. | XW | YW | RW | SW | T | C | D | I | J | K |
|
| ||
A | Source |
|
|
|
|
|
| √ | √ | √ | √ |
| √ | √ | √ |
|
|
|
| √ |
|
B | Destination |
|
|
|
|
|
|
| √ |
| √ | √ | √ | √ | √ |
|
|
|
|
|
|
Example
When X007 is ON, the 2’s complement value (sign inverted data) of
For example, if RW41⋅RW40 is
Note
•The data range of A+1⋅A is
Basic Hardware and Function 233