en-us_products:mpino_studio2:box_functions:bit_operations:ror
Table of Contents
ROR Box Function
Rotate Right
Category: Bitwise Operation Box Functions
Behavior
Rotates a D, C, or T WORD right. Bits leaving the right return at the left end.
Syntax and Arguments
Syntax: ROR D0 1 D1
- 1st = source: D, C, or T WORD address
- 2nd = rotate count
- 3rd = destination: D, C, or T WORD address
Behavior Example
| Run condition | Before | Command entered | Expected result |
|---|---|---|---|
| Left condition ON | D0=0x0003 | ROR D0 1 D1 | D1=0x8001 |
Cautions
- The operation applies to all 16 bits of the WORD.
Box Functions in the Same Category
- WAND View details — Word AND
- WOR View details — Word OR
- WXOR View details — Word XOR
- WNOT View details — Word NOT
- SHL View details — Shift Left
- SHR View details — Shift Right
- ROL View details — Rotate Left
en-us_products/mpino_studio2/box_functions/bit_operations/ror.txt · Last modified: by 127.0.0.1
