en-us_products:mpino_studio2:box_functions:arithmetic:add
Table of Contents
ADD Box Function
Add
Category: Arithmetic Box Functions
Behavior
Adds two values and stores the result in the destination.
Syntax and Arguments
Syntax: ADD D0 D1 D2
- 1st = S1: address or constant
- 2nd = S2: address or constant
- 3rd = D: result destination address
Behavior Example
| Run condition | Before | Command entered | Expected result |
|---|---|---|---|
| Left condition ON | D0=12, D1=5 | ADD D0 D1 D2 | D2=17 |
Cautions
- Make sure the result stays within the value range of the destination memory.
Box Functions in the Same Category
- SUB View details — Subtract
- MUL View details — Multiply
- DIV View details — Divide
- MOD View details — Modulo
- INC View details — Increment
- DEC View details — Decrement
- SCALE View details — Scale (Linear Interpolation)
- FLOOR View details — Floor
- SQRT View details — Square Root
en-us_products/mpino_studio2/box_functions/arithmetic/add.txt · Last modified: by 127.0.0.1
