Table a-9: agu arithmetic instructions, A-15, Table a-9 thro – Freescale Semiconductor StarCore SC140 User Manual

Page 329: In table a-9 and

Advertising
background image

DSP Core Instruction Set

SC140 DSP Core Reference Manual

A-15

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

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

Instruction

Description

Advertising