
Chapter 5. Application instructions
5-59
-
Execution condition
2) Program example
-
When a rising edge is detected at P020, subtract contents of D0000 and D0001 and store the
addition result to P06 word.
Input condition
SUBB, DSUBB
SUBBP, DSUBBP
Executed only once
Executed only once
Executed per scan
Executed per scan
SUBB D0000 D0001 P06
P020
16 bits
0
0
1
1
1
0
0
0
1
1
0
1
0
0
1
1
0
0
0
1
0
0
1
0
0
0
0
0
1
1
0
0
-
h3803
h1209
0
0
1
0
0
1
1
0
1
1
0
0
0
1
1
1
h2594
D0000
D0001
P06