ADDL2A

ADDL2A Add With Two-Bit Arithmetic Shift Left ADDL2A

 

of Source Operand (AGU)

Operation

Assembler Syntax

(rx<<2) + Rx → Rx

ADDL2A rx,Rx

Description

ADDL2A rx,Rx

Performs a two-bit arithmetic shift left on the data from AGU source register (rx), adds the result to another AGU source register (Rx), and stores the sum in the destination (second) register (Rx). For R0-R7 destinations, the operation is affected by the modifier mode selected in MCTL.

Status and Conditions that Affect Instruction

Register Address

Bit Name

Description

SR[18]

EXP

Determines which stack pointer is used when the stack pointer is an

 

 

operand. Otherwise, the instruction is not affected by SR.

MCTL[31:0]

AM3–AM0

Address modification bits when updating R0–R7. Otherwise, the

 

 

instruction is not affected by MCTL.

Status and Conditions Changed by Instruction

None.

Example

addl2a r0,r1

Register/Memory Address

MCTL

R0

R1

Before

$0000 0000

$0000 0055

$0000 0011

After

$0000 0165

In binary:

R0

R0 shifted left two

R1

Sum

01010101

101010101

00010001

101100101

A-34

SC140 DSP Core Reference Manual

Page 348
Image 348
Freescale Semiconductor SC140 ADDL2A Add With Two-Bit Arithmetic Shift Left ADDL2A, Addl2a r0,r1, Rx2 + Rx → Rx