en-us_products:mpino_studio2:box_functions:bit_operations:rol
Table of Contents
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 |
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
- ROR View details — Rotate Right
en-us_products/mpino_studio2/box_functions/bit_operations/rol.txt · Last modified: by 127.0.0.1
