Texas Instruments TMS320C3x User Manual

Page 661

Advertising
background image

Round Floating-Point Value

RND

13-203

Assembly Language Instructions

Example

RND R5,R2

Before Instruction

After Instruction

R2

00 0000 0000

R2

07 33C1 6F00

R5

07 33C1 6EEF

R5

07 33C1 6EEF

LUF

0

LUF

0

LV

0

LV

0

UF

0

UF

0

N

0

N

0

Z

0

Z

0

V

0

V

0

C

0

C

0

1.79755599e+02

1.79755599e+02

1.79755600e+02

Note:

BZUF Instruction

If a BZ instruction is executed immediately following an RND instruction with
a 0 operand, the branch is not performed because the zero flag is not set.
To circumvent this problem, execute a BZUF instruction instead of a BZ
instruction.

Advertising