Addk, Add signed 16-bit constant to register addk – Texas Instruments TMS320C67X/C67X+ DSP User Manual

Page 119

Advertising
background image

Add Signed 16-Bit Constant to Register

ADDK

3-59

Instruction Set

SPRU733

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

1

5

16

1

1

Opcode map field used...

For operand type...

Unit

cst16
dst

scst16
uint

.S1, .S2

Description

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

Execution

if (cond)

cst + dst

dst

else nop

Pipeline
Stage

E1

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

Pipeline

Advertising