Adrk – Texas Instruments TMS320C2XX User Manual

Page 186

Advertising
background image

Add Short-Immediate Value to Auxiliary Register

ADRK

7-33

Assembly Language Instructions

Syntax

ADRK #

k

Short immediate addressing

Operands

k:

8-bit short immediate value

ADRK #

k

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

0

1

1

1

1

0

0

0

k

Execution

Increment PC, then ...
(current AR) + 8-bit positive constant

current AR

Status Bits

None

Description

The 8-bit immediate value is added, right justified, to the current auxiliary regis-
ter (the one specified by the current ARP value) and the result replaces the
auxiliary register contents. The addition takes place in the ARAU, with the im-
mediate value treated as an 8-bit positive integer. All arithmetic operations on
the auxiliary registers are unsigned.

Words

1

Cycles for a Single ADRK Instruction

ROM

DARAM

SARAM

External

1

1

1

1+p

Example

ADRK

#80h

Before Instruction

After Instruction

ARP

5

ARP

5

AR5

4321h

AR5

43A1h

Opcode

Cycles

Advertising