Shift Operations
2-49Central Processing Unit
Table 2−11. Shift Operations (Continued)
Operation Type Illustration
Store 16 LSBs of shifted P. P is shifted
as per the PM bits. The 16 LSBs of shifter
are stored. Syntax:
MOV loc16, P
Shift left
0
P
16 LSBs to ALU
Shift right
P
Discard
Sign
Discard
16 LSBs to ALU
For PM = 0:
For PM from 2−7:
For PM = 1: No shift
Store 16 MSBs of shifted P. P is shifted
as per the PM bits. The result is shifted
right by 16 so that its 16 MSBs are in the
16 LSBs of the shifter. 16 LSBs of shifter
are stored. Syntax:
MOVH loc16, P
Shift left
0
P
Shift right
P
Discard
Sign
Discard
For PM = 0:
For PM from 2−7:
Shift right by 16
Discard
16 LSBs to ALU
1)
2)
Shift right by 16
Discard
16 LSBs to ALU
1)
2)
For PM = 1: No shift