TC1796
System Units (Vol. 1 of 2)
Peripheral Control Processor (PCP)
User’s Manual
11-102
V2.0, 2007-07
PCP, V2.0
11.11.34 SHR, Shift Right
This section describes the SHR instruction of the PCP.
SHR
Syntax
SHR Ra, #imm5
Description
Shift the contents of register Ra to the right by the number of
bit positions specified through the 5-bit value imm5. The
values allowed for imm5 are 1, 2, 4 and 8. Zeros are shifted
in from left.
Operation
R[a] = R[a] >> imm5; imm5 = 1, 2, 4, 8
Flags
N, Z