Freescale Semiconductor SC140 ADDL1A Add With One-Bit Arithmetic Shift Left ADDL1A, Addl1a r0,r1

Models: SC140

1 760
Download 760 pages 48.94 Kb
Page 346
Image 346

ADDL1A

ADDL1A Add With One-Bit Arithmetic Shift Left ADDL1A

 

of Source Operand (AGU)

Operation

Assembler Syntax

(rx<<1) + Rx → Rx

ADDL1A rx,Rx

Description

ADDL1A rx,Rx

Performs a one-bit arithmetic shift left on the data from source AGU register (rx) and adds the result to a second source AGU register (Rx). The sum is stored back in 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.

Example

addl1a r0,r1

Register/Memory Address

MCTL

R0

R1

In binary:

Before

$0000 0000

$0000 0055

$0000 0011

After

$0000 00BB

R0

R0 shifted left

R1

Sum

01010101

10101010

00010001

10111011

A-32

SC140 DSP Core Reference Manual

Page 346
Image 346
Freescale Semiconductor SC140 ADDL1A Add With One-Bit Arithmetic Shift Left ADDL1A, Source Operand AGU, Addl1a r0,r1