beautypg.com

76 shrac shift accumulator right – Texas Instruments MSP50C6xx User Manual

Page 258

background image

Individual Instruction Descriptions

4-172

4.14.76

SHRAC

Shift Accumulator Right

Syntax

[label]

name

dest, src, [, mod]

Clock, clk

Word, w

With RPT, clk

Class

SHRAC

An[~], An[~] [, next A]

1

1

n

R

+3

3

Execution

[premodify AP if mod specified]
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

SHRAC An[~], An[~] [, next a]

1

1

1

0

0

next A

An

0

1

0

1

1

0

A~

~A

Description

Premodify accumulator pointer if specified. Shift source accumulator src or its
offset to right one bit and store the result into dest accumulator or its offset.
MSB of result will be set according to extended sign mode (XM) bit in the status
register.

Example 4.14.76.1

SHRAC A1, A1

Shift right one bit the accumulator A1.

Example 4.14.76.2

SHRAC A1~, A1, ++A

Preincrement by one accumulator pointer AP1. Shift right one bit the newly pointed accumulator A1,
and store result to offset accumulator A1~.