8 High-level Instructions (Data
Shift and Rotation)
Applicable Models: All Models
8.1 SHR (Right Shift for n Bits) .................................................................8-2
8.2 SHL (Left Shift for n Bits) ....................................................................8-4
8.3 BSR (Right Shift for n Digits) ..............................................................8-6
8.4 BSL (Left Shift for n Digits) .................................................................8-8
8.5 BITR (Right Shift of Multiple Devices for n Bits) .................................8-10
8.6 BITL (Left Shift of Multiple Devices for n Bits) ....................................8-12
8.7 WSHR (Right Shift of Block Area for n Words)...................................8-14
8.8 WSHL (Left Shift of Block Area for n Words)......................................8-16
8.9 WBSR (Right Shift of Block Area for n Digits).....................................8-18
8.10 WBSL (Left Shift of Block Area for n Digits)......................................8-20
8.11 ROR (Right Rotation of Data) ...........................................................8-22
8.12 ROL (Left Rotation of Data) ..............................................................8-24
8.13 RCR (Right Rotation of Data with Carry-Flag Data) .........................8-26
8.14 RCL (Left Rotation of Data with Carry-Flag Data) ............................8-28
8.15 CMPR (Data Table Shift-Out and Compress) ...................................8-30
8.16 CMPW (Data Table Shift-In and Compress) .....................................8-32
8.17 DEFBUF (Buffer Definition)...............................................................8-34
8.18 FIFR (Data Read (First-In-First-Out))................................................8-37
8.19 BUFW (Data Write)...........................................................................8-40
8.20 LIFR (Data Read (Last-In-First-Out))................................................8-42
8.21 DEFRBUF (Ring Buffer Definition)....................................................8-45
8.22 RBUFW (Write to Ring Buffer, Calculation of Total Value and
Moving Average Value).........................................................................8-47
WUME-FP7CPUPGR-12
8-1