Asl2a, Arithmetic shift left, Example – Freescale Semiconductor StarCore SC140 User Manual

Page 364: Instruction formats and opcodes instruction fields, Operation assembler syntax

Advertising
background image

A-50

SC140 DSP Core Reference Manual

ASL2A

ASL2A

Arithmetic Shift Left

ASL2A

By Two Bits (AGU)

Description

Status and Conditions that Affect Instruction

Status and Conditions Changed by Instruction

None.

Example

asl2a r0

Instruction Formats and Opcodes

Instruction Fields

Rx

RRRR

AGU Source/Destination Register

Operation

Assembler Syntax

Rx<<2

→ Rx

ASL2A Rx

ASL2A Rx

Shifts an AGU register (Rx) left two bits. Bits [29:0] are copied into bits [31:2]. Bits [1:0] are cleared.

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.

Register/Memory Address

Before

After

R0

$e001 0002

$8004 0008

Instruction

Words Cycles Type

Opcode

15

8

7

0

ASL2A Rx

1

1

2

1

1

1

0

R R R R

1

1

1

1

1

1

1

0

0000

N0

0100

1000

R0

1100

R4

0001

N1

0101

1001

R1

1101

R5

0010

N2

0110

1010

R2

1110

R6

0011

N3

0111

SP

1011

R3

1111

R7

Note:

This instruction can specify R8-R15 as operands by using a high register prefix.

Advertising