Texas Instruments MSP50C6xx manual Shrac Shift Accumulator Right, Register, Dest, src, , mod

Models: MSP50C6xx

1 390
Download 390 pages 41.72 Kb
Page 258
Image 258

Individual Instruction Descriptions

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

 

 

 

 

nR+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~.

4-172

Page 258
Image 258
Texas Instruments MSP50C6xx manual Shrac Shift Accumulator Right, Register, Shift right one bit the accumulator A1