Shift Left
Category: Bitwise Operation Box Functions
Shifts a WORD left and stores the result. Bits leaving the left are discarded and zeros fill from the right. Use a shift count from 0 to 15.
Syntax: SHL D0 2 D1
| Run condition | Before | Command entered | Expected result |
|---|---|---|---|
| Left condition ON | D0=0x0003 | SHL D0 2 D1 | D1=0x000C |