Table of Contents

SHL Box Function

Shift Left

Category: Bitwise Operation Box Functions

Behavior

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 and Arguments

Syntax: SHL D0 2 D1

Behavior Example

Run condition Before Command entered Expected result
Left condition ON D0=0x0003 SHL D0 2 D1 D1=0x000C

Inputs and results for Bitwise Operation Box Functions

Cautions

Box Functions in the Same Category