Ftos – Renesas M32R-FPU User Manual

Page 94

Advertising
background image

3

3-56

M32R-FPU Software Manual (Rev.1.01)

INSTRUCTIONS

3.2 Instruction description

FTOS

FTOS

[Mnemonic]

FTOS Rdest,Rsrc

[Function]

Convert the floating-point single precision value to 16-bit integer.

Rdest = (signed int) Rsrc ;

[Description]

Convert the floating-point single precision value stored in Rsrc to a 16-bit integer and store the

result in Rdest.

The result is rounded toward 0 regardless of the value in the RM field of FPSR. The condition

bit (C) remains unchanged.

[EIT occurrence]

Floating-Point Exceptions (FPE)

• Unimplemented Operation Exception (UIPL)

• Invalid Operation Exception (IVLD)

• Inexact Exception (IXCT)

[Encoding]

floating-point Instructions

Float to short

[M32R-FPU Extended Instruction]

src

1101

0000

0000

dest

0100

0000

1100

FTOS Rdest,Rsrc

Advertising