User Tools

Site Tools


en-us_products:mpino_studio2:box_functions:bit_operations:ror

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

Inputs and results for Bitwise Operation Box Functions

Cautions

  • The operation applies to all 16 bits of the WORD.

Box Functions in the Same Category

en-us_products/mpino_studio2/box_functions/bit_operations/ror.txt · Last modified: by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki