====== MPINO STUDIO 2 Phase 4-6 · Bitwise Operation Box Functions ====== These commands apply logic, shift, or rotate operations to the bits in a WORD. {{ :en-us_products:mpino_studio2:bit-operation-map.svg?1000 |These commands apply logic, shift, or rotate operations to the bits in a WORD. }} ===== Common Rules ===== Bit-operation commands process all 16 bits in a WORD. A shift discards bits that leave the word and fills with zero; a rotate brings those bits back at the opposite end. ===== Box Function List ===== ^ Command ^ Meaning ^ | [[en-us_products:mpino_studio2:box_functions:bit_operations:wand|WAND]] | Applies bitwise AND to two WORD values and stores the result. | | [[en-us_products:mpino_studio2:box_functions:bit_operations:wor|WOR]] | Applies bitwise OR to two WORD values and stores the result. | | [[en-us_products:mpino_studio2:box_functions:bit_operations:wxor|WXOR]] | Applies bitwise XOR to two WORD values and stores the result. | | [[en-us_products:mpino_studio2:box_functions:bit_operations:wnot|WNOT]] | Inverts every bit in the source WORD and stores the result. | | [[en-us_products:mpino_studio2:box_functions:bit_operations:shl|SHL]] | Shifts a WORD left and stores the result. | | [[en-us_products:mpino_studio2:box_functions:bit_operations:shr|SHR]] | Logically shifts a D WORD right and stores the result. | | [[en-us_products:mpino_studio2:box_functions:bit_operations:rol|ROL]] | Rotates a D, C, or T WORD left. | | [[en-us_products:mpino_studio2:box_functions:bit_operations:ror|ROR]] | Rotates a D, C, or T WORD right. | ===== Related Documentation ===== * [[en-us_products:mpino_studio2:box_functions|Phase 4 · Box Functions]] * [[en-us_products:mpino_studio2|MPINO STUDIO 2 User Manual]]