2 Instructions
2-190
CP1E CPU Unit Instructions Reference Manual(W483)
Sample program
When CIO 0.00 is ON in the following example, NEG(160) calculates the 2’s complement of the content
of D100 and writes the result to D200.
1D100 2 34
EDCB
=
ED200 D CC
0000
EDCC
NEG
D100
D200
0.00
1234
Add 1
Actual
calculation
Equivalent
subtraction
Reverse bit status