EasyManua.ls Logo

Toshiba PROSEC T1-16S - Page 235

Toshiba PROSEC T1-16S
301 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
6F3B0253
Basic Hardware and Function 233
7. Instructions
FUN 183 DNEG Double-word 2’s complement
Expression
Input [ A+1A DNEG B+1B ] Output
Function
When the input is ON, this instruction finds the 2’s complement value of double-word data A+1A,
and stores it in
B+1
B
.
Execution condition
Input Operation Output
OFF No execution OFF
ON Execution ON
Operand
Name Device Register Constant Index
X Y R S T. C. XWYWRWSW T C D I J K
A Source
√√√√√√√
B Destination
√√√√√√
Example
When X007 is ON, the 2’s complement value (sign inverted data) of double-word register
RW41RW40 is stored in double-word register D0151D0150.
For example, if RW41RW40 is -1234567890, the 2’s complement value 1234567890 is stored
in D0151D0150.
Note
The data range of
A+1A
is -2147483648 to 2147483647. If the data of
A+1A
is -2147483648,
the same data -2147483648 is stored in
B+1B
.

Table of Contents

Related product manuals