Mitsubishi Electronics E60 Video Game Controller User Manual


 
NEG
- 148 -
{ NEG ... Complement of 2 (BIN 16-bit data)
Usable device
Bit device Word device
Con-
stant
Pointer Level
X Y M L SM F T C D R Z K H P N
Digit
desig-
nation
No. of
steps
Index
D
2
Complement of 2 execution command
NEG D
NEG
Setting data
D
No. of device where data to
be complemented by 2 is
stored.
Function
(1) The 16-bit data of the device designated with D is reversed and incremented by one, and then
stored in the device designated with D.
Before execution D
01 0 0010101011101
10 1 1101010100010
16-bit
After execution D
10 1 1101100100010
+1
Reversal
(2) This is used to use a negative BIN value as an absolute value.
Execution conditions
The execution conditions for NEG are as follow.
Complement of 2
execution command OFF
NEG
ON
Executed per scan
Executed per scan