User Tools

Site Tools


en-us_products:mpino_studio2:box_functions:arithmetic:dec

DEC Box Function

Decrement

Category: Arithmetic Box Functions

Behavior

Decrements the destination by one and stores it back at the same address.

Syntax and Arguments

Syntax: DEC 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 DEC D0 D0=6

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/dec.txt · Last modified: by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki