Mitsubishi Electronics C64 Home Safety Product User Manual


 
8. Function Commands
DNEG, DNEGP
- 196 -
{ DNEG, DNEGP ... Complement of 2 (BIN 32-bit data)
Usable device
Bit device Word device
Con-
stant
Pointer
X Y M L F BSB T SM VTCDRWSWZSDKH P
Digit
desig-
nation
Index
No. of
steps
D
{ { { { { {
{
{ { { { { { { {
{
2
Complement of 2 execution command
DNEG
D
Setting data
D
Head No. of device where
data to be complemented
by 2 is stored.
DNEGP
D
DNEG
DNEGP
Function
(1) The 32-bit data of the device designated with D is reversed and incremented by one, and then
stored in the device designated with D.
32 bit
01010101010101010000000100000000
Reversal
+1
01010101010101010000000011111111
10101010101010101111111100000000
After execution D
Before execution D
(2) This is used to use a negative BIN value as an absolute value.
Execution conditions
The execution conditions for DNEG, DNEGP commands are as follow.
Complement of 2
execution command OFF
DNEG
ON
Executed per scan
Executed per scan
DNEGP