Encoding (format 9, first word at lower address):
1 | 0 | 0 | 1 | 1 | 0 | 0 | d2 | d1 | d0 | a2 | a1 | a0 | i2 | i1 | i0 |
0 | 0 | 0 | 0 | 0 | 0 | 0 | d5 | d4 | d3 | a5 | a4 | a3 | i5 | i4 | i3 |
Syntax:
ASRI
Rd,
Ra,
I
Constraints:
Outcome:
Notes:
If I ≥ 17 the result in Rd will be zero.
The shift is encoded with a value 1 less than specified (i.e. a shift of 1 is encoded as 0000002. The rationale is that shifting by zero is pointless. It is not needed to clear the carry flag, since there are other ways of clearing the it (for example adding constant zero).