77 shracs shift accumulator string right – Texas Instruments MSP50C6xx User Manual
Page 259
Individual Instruction Descriptions
4-173
Assembly Language Instructions
4.14.77
SHRACS
Shift Accumulator String Right
Syntax
[label]
name
dest, src
Clock, clk
Word, w
With RPT, clk
Class
SHRACS
An[~], An[~]
n
S
+3
1
n
R
+3
3
Execution
dest
⇐
src >> 1
PC
⇐
PC + 1
Flags Affected
OF, SF, ZF, CF are set accordingly
Opcode
Instructions
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
SHRACS An[~], An[~]
1
1
1
0
0
1
1
An
0
1
0
1
1
0
A~
~A
Description
Shift accumulator string right one bit and store the result into An[~] string. MSB
of each accumulator in the result will be set according to extended sign mode
(XM) bit in the status register. This instruction shifts each accumulator
individually 1 bit to the right, so, shifts from one accumulator are not
propagated to the next consecutive accumulator in the string.
See Also
SHRAC, SHL, SHLS, SHLAPL, SHLAPLS, SHLSPL, SHLSPLS, SHLTPL,
SHLTPLS.
Example 4.14.77.1
SHRACS A0, A0
Shift accumulator string A0 1 bit right individually.
Example 4.14.77.2
SHRACS A1, A1~
Shift accumulator string A1~ individually, put result in accumulator string A1.