Mitsubishi — 3.14.3.2 Logical Operation

Chapter 3 Creating and Editing Screens $2 = F1000000H Shift-left 4 bits and becomes $4 = 10000000H (this is an operation of unsigned 32-bit data).  >> (SHR, Logical Shift-right operation) Equation Var1 = Var2 >> Var3 Explanation Shift Var2 (WORD/DWORD) data to right (number of bit is Var3). The result of this calculation is stored in Var1. Remark  The calculation result can be stored as WORD and DWORD.  If the shift number of bit is more than the address itself, the number out of range will be discarded.  Var1 can be internal memory only. Var2 and Var3 can be internal memory or constant. 3-326 Revision May, 2010