====== INC Box Function ====== **Increment** Category: [[en-us_products:mpino_studio2:box_functions:arithmetic|Arithmetic Box Functions]] ===== Behavior ===== Increments the destination by one and stores it back at the same address. ===== Syntax and Arguments ===== **Syntax:** ''INC D0'' * 1st = D: target address (stores the previous value +1 back to the same address) ===== Behavior Example ===== ^ Run condition ^ Before ^ Command entered ^ Expected result ^ | Left condition ON | D0=7 | ''INC D0'' | D0=8 | {{ :en-us_products:mpino_studio2:arithmetic-examples.svg?1000 |Inputs and results for Arithmetic Box Functions }} ===== Cautions ===== * Make sure the result stays within the value range of the destination memory. ===== Box Functions in the Same Category ===== * [[en-us_products:mpino_studio2:box_functions:arithmetic:add|ADD View details]] — Add * [[en-us_products:mpino_studio2:box_functions:arithmetic:sub|SUB View details]] — Subtract * [[en-us_products:mpino_studio2:box_functions:arithmetic:mul|MUL View details]] — Multiply * [[en-us_products:mpino_studio2:box_functions:arithmetic:div|DIV View details]] — Divide * [[en-us_products:mpino_studio2:box_functions:arithmetic:mod|MOD View details]] — Modulo * [[en-us_products:mpino_studio2:box_functions:arithmetic:dec|DEC View details]] — Decrement * [[en-us_products:mpino_studio2:box_functions:arithmetic:scale|SCALE View details]] — Scale (Linear Interpolation) * [[en-us_products:mpino_studio2:box_functions:arithmetic:floor|FLOOR View details]] — Floor * [[en-us_products:mpino_studio2:box_functions:arithmetic:sqrt|SQRT View details]] — Square Root