beautypg.com

16 extsgn sign extend word – Texas Instruments MSP50C6xx User Manual

Page 184

background image

Individual Instruction Descriptions

4-98

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

n

R

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