Texas Instruments MSP50C614 manual Extsgn Sign Extend Word, An~ , next a, Dest , mod

Models: MSP50C614

1 414
Download 414 pages 24.44 Kb
Page 189
Image 189

Individual Instruction Descriptions

4.14.16 EXTSGN

 

 

Sign Extend Word

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Syntax

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

[label]

 

name

dest [, mod]

 

 

 

 

Clock, clk

 

Word, w

 

 

With RPT, clk

Class

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

EXTSGN

An[~] [, next A]

 

 

 

 

1

 

 

 

 

1

 

 

 

 

 

nR+3

 

 

 

3

Execution

[premodify AP if mod specified]

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

new most significant word of dest

STAT.SF

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PC PC + 1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Flags Affected

None

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Opcode

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Instructions

 

 

16

 

15

14

13

12

11

 

10

 

9

 

8

 

7

 

6

 

5

 

4

 

3

2

 

1

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

EXTSGN An[~] [, next A]

 

 

1

 

1

1

0

0

next A

 

 

An

 

0

 

1

 

1

 

1

 

1

0

 

0

~A

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Description

Copy accumulator sign flag (SF) to all 16 bits of An[~].

 

 

 

 

 

 

 

 

See Also

EXTSGNS

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Example 4.14.16.1

EXTSGN A0~, ++A

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Preincrement accumulator pointer AP0. Sign extend the accumulator A0~.

Assembly Language Instructions

4-97

Page 189
Image 189
Texas Instruments MSP50C614 Extsgn Sign Extend Word, An~ , next a, Copy accumulator sign flag SF to all 16 bits of An~