Operand instructions – Texas Instruments TMS320C3x User Manual

Page 461

Advertising
background image

Instruction Set

13-3

Assembly Language Instructions

13.1.2 2-Operand Instructions

The ’C3x supports 35 2-operand arithmetic and logical instructions. The two
operands are the source and destination. The source operand can be a memory
word, a register, or a part of the instruction word. The destination operand is
always a register.

As shown in Table 13–2, these instructions provide integer, floating-point or
logical operations, and multiprecision arithmetic.

Table 13–2. 2-Operand Instructions

Instruction

Description

Instruction

Description

ABSF

Absolute value of a floating-
point number

NORM

Normalize floating-point value

ABSI

Absolute value of an integer

NOT

Bitwise-logical complement

ADDC

Add integers with carry

OR

Bitwise-logical OR

ADDF

Add floating-point values

RND

Round floating-point value

ADDI

Add integers

ROL

Rotate left

AND

Bitwise-logical AND

ROLC

Rotate left through carry

ANDN

Bitwise-logical AND with

complement

ROR

Rotate right

ASH

Arithmetic shift

RORC

Rotate right through carry

CMPF

Compare floating-point values

SUBB

Subtract integers with borrow

CMPI

Compare integers

SUBC

Subtract integers conditionally

FIX

Convert floating-point value to
integer

SUBF

Subtract floating-point values

FLOAT

Convert integer to floating-point
value

SUBI

Subtract integer

LSH

Logical shift

SUBRB

Subtract reverse integer with
borrow

MPYF

Multiply floating-point values

SUBRF

Subtract reverse floating-point
value

MPYI

Multiply integers

SUBRI

Subtract reverse integer

NEGB

Negate integer with borrow

TSTB

Test bit fields

NEGF

Negate floating-point value

XOR

Bitwise-exclusive OR

NEGI

Negate integer

† 2- and 3-operand versions

Advertising