====== INV Box Function ====== **Invert** Category: [[en-us_products:mpino_studio2:box_functions:conversion|Conversion Box Functions]] ===== Behavior ===== Inverts every bit in the source WORD and stores the result. It performs the same operation as WNOT from the Conversion category. ===== Syntax and Arguments ===== **Syntax:** ''INV D0 D1'' * 1st = S: source address or constant to invert * 2nd = D: result destination address ===== Behavior Example ===== ^ Run condition ^ Before ^ Command entered ^ Expected result ^ | Left condition ON | D0=0x0001 | ''INV D0 D1'' | D1=0xFFFE | {{ :en-us_products:mpino_studio2:conversion-examples.svg?1000 |Inputs and results for Conversion Box Functions }} ===== Cautions ===== * Use the WORD data formats required by the command for the source and destination. ===== Box Functions in the Same Category ===== * [[en-us_products:mpino_studio2:box_functions:conversion:neg|NEG View details]] — Negate * [[en-us_products:mpino_studio2:box_functions:conversion:h2d|H2D View details]] — BCD Decode (Hex to Decimal) * [[en-us_products:mpino_studio2:box_functions:conversion:d2h|D2H View details]] — BCD Encode (Decimal to Hex)