Freescale Semiconductor SC140 specifications Table A-9. AGU Arithmetic Instructions

Models: SC140

1 760
Download 760 pages 48.94 Kb
Page 329
Image 329

DSP Core Instruction Set

Table A-8. DALU Logical Instructions (BFU) (Continued)

Instruction

Description

 

 

 

 

ROL

Rotate one bit left through the carry bit

 

 

ROR

Rotate one bit right through the carry bit

 

 

SXT.B

Sign extend byte

 

 

SXT.L

Sign extend long

 

 

SXT.W

Sign extend word

 

 

ZXT.B

Zero extend byte

 

 

ZXT.L

Zero extend long

 

 

ZXT.W

Zero extend word

 

 

Table A-9. AGU Arithmetic Instructions

Instruction

Description

 

 

 

 

ADDA

Add (affected by the modifier mode)

ADDL1A

Add with 1-bit left shift of source operand (affected by the modifier mode)

ADDL2A

Add with 2-bit left shift of source operand (affected by the modifier mode)

ASL2A

Arithmetic shift left by 2 bits (32-bit)

ASLA

Arithmetic shift left (32-bit)

ASRA

Arithmetic shift right (32-bit)

CMPEQA

Compare for equal

CMPGTA

Compare for greater than

CMPHIA

Compare for higher (unsigned)

DECA

Decrement register

DECEQA

Decrement and set T if zero

DECGEA

Decrement and set T if equal or greater than zero

INCA

Increment register

LSRA

Logical shift right (32-bit)

SUBA

Subtract (affected by the modifier mode)

SXTA.B

Sign extend byte

SXTA.W

Sign extend word

TFRA

Register transfer

TFRA (OSP)

Move the “other” stack pointer to/from a register, inversely defined by the exception mode

TSTEQA.L

Test for equal

TSTEQA.W

Test for equal on lower 16 bits

TSTGEA

Test for greater than or equal

TSTGTA

Test for greater than

ZXTA.B

Zero extend byte

ZXTA.W

Zero extend word

SC140 DSP Core Reference Manual

A-15

Page 329
Image 329
Freescale Semiconductor SC140 specifications Table A-9. AGU Arithmetic Instructions