Delta DVP-ES3 — 6.2.2 Explanation of Arithmetic Instructions

Chapter 6 Applied Instructions 9. 16-bit instruction example: when the operand S 2 is a device (not a constant or a hexadecimal value) . . . . . S +n-1 1 2 } } . . . . . D +n-1 } S 1 S 1 +1 1 2 S 2 S 2 +1 1 2 D D +1 1+1=2 2+2=4 . . . . . S +n-1 . . n n + . . n = . . . . 5 . . 5+5=10 . . 5 10. 16-bit instruction example: when the operand S 2 is a constant or a hexadecimal value S 1 . . . . . S 1 2 } } 10 1 S 2 . . . . . D +n-1 } D 1+10=11 . . . . . S +n-1 S 1 +1 2 n n + S 2 10 n = D +1 2+10=12 . . . . . . . . . . . . 5 10 5+10=15 Example 1 When M0 is ON, the instruction adds the binary values in D10–D14 to the binary values in D0–D4, and stores the sums.

6_ Execution result D0 1 D10 10 D100 11 D1 2 D11 11 D101 13 D2 D3 3 4 + D12 D13 12 13 D102 D103 15 17 D4 5 D14 14 D104 19 6-65