beautypg.com

76 shracs shift accumulator string right – Texas Instruments MSP50C614 User Manual

Page 263

background image

Individual Instruction Descriptions

4-171

Assembly Language Instructions

4.14.76

SHRACS

Shift Accumulator String Right

Syntax

[label]

name

dest, src

Clock,

clk

Word,

w

With RPT,

clk

Class

SHRACS

A

n[~], 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 A

n[~], An[~]

1

1

1

0

0

1

1

A

n

0

1

0

1

1

0

A~

~A

Description

Shift accumulator string right one bit and store the result into A

n[~] 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.76.1

SHRACS A0, A0

Shift accumulator string A0 1 bit right individually.

Example 4.14.76.2

SHRACS A1, A1~

Shift accumulator string A1~ individually, put result in accumulator string A1.