Add Signed 16-Bit Constant to Register

 

ADDK

 

 

 

 

Add Signed 16-Bit Constant to Register

 

 

 

 

 

 

 

 

ADDK

 

 

 

 

 

 

 

 

 

 

 

Syntax

 

 

 

 

ADDK (.unit) cst, dst

 

 

 

 

 

 

 

 

 

 

 

 

 

.unit = .S1 or .S2

 

 

 

 

 

 

 

 

Compatibility

 

 

C62x, C64x, C67x, and C67x+ CPU

 

 

 

 

 

 

 

 

Opcode

 

 

 

 

 

 

 

 

 

 

 

 

 

31

29

28

27

23

22

7

6

5

4

3

2

1

0

creg

z

dst

cst16

1 0

1 0

0 s p

3 15161 1

Opcode map field used...

For operand type...

Unit

 

 

 

cst16

scst16

.S1, .S2

dst

uint

 

 

 

 

Description

Execution

Pipeline

A 16-bit signed constant, cst16, is added to the dst register specified. The result is placed in dst.

if (cond) cst + dst dst else nop

Pipeline

StageE1

Read cst16

Written dst

Unit in use

.S

 

 

Instruction Type

Single-cycle

 

Delay Slots

0

 

Example

ADDK .S1 15401,A1

 

 

Before instruction

1 cycle after instruction

A1 0021 37E1h

2176993 A1

0021 740Ah

2192394

SPRU733

Instruction Set

3-59

Page 119
Image 119
Texas Instruments TMS320C67X/C67X+ DSP manual Add Signed 16-Bit Constant to Register, Addk