Table of Contents

SHR Box Function

Shift Right

Category: Bitwise Operation Box Functions

Behavior

Logically shifts a D WORD right and stores the result. Bits leaving the right are discarded and zeros fill from the left.

Syntax and Arguments

Syntax: SHR D0 1 D1

Behavior Example

Run condition Before Command entered Expected result
Left condition ON D0=0x000C SHR D0 1 D1 D1=0x0006

Inputs and results for Bitwise Operation Box Functions

Cautions

Box Functions in the Same Category