2-149

2 Instructions
CP1E CPU Unit Instructions Reference Manual(W483)

Increment/Decrement

Instructions
2

++/++L

Operation of @++(590)/@++L(591)

The up-differentiated variation is used in the following example, so the content of D100 will be incre-

mented by 1 only when CIO 0.00 has gone from OFF to ON.

The up-differentiated variation is used in the following example, so the content of D101 and D100 will be

incremented by 1 only when CIO 0.00 has gone from OFF to ON.

0 0 1 9
Wd: D100
0 0 1 A
Incremented every cycle
while CIO 0.00 is ON.
Wd: D100
@++
D100
+1
0.00
0.00
Wd+1: D101 Wd: D100 Wd+1: D101 Wd: D100
Increment Increment
: Execution of @++(590) or @++L(591)
Incremented only for
up-differentiation.
+1
@++L
D100
0.00
0000 FFFF 0001 0000