User Tools

Site Tools


en-us_products:mpino_studio2:box_functions:bit_operations:rol

ROL Box Function

Rotate Left

Category: Bitwise Operation Box Functions

Behavior

Rotates a D, C, or T WORD left. Bits leaving the left return at the right end.

Syntax and Arguments

Syntax: ROL D0 2 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=0x8001 ROL D0 2 D1 D1=0x0006

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

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki