Shift Right
Category: Bitwise Operation Box Functions
Logically shifts a D WORD right and stores the result. Bits leaving the right are discarded and zeros fill from the left.
Syntax: SHR D0 1 D1
| Run condition | Before | Command entered | Expected result |
|---|---|---|---|
| Left condition ON | D0=0x000C | SHR D0 1 D1 | D1=0x0006 |