Download Table of Contents (Continued)

Transcript
Chapter 3 Expressions - Functions
@TNH(<expression>)
Returns the hyperbolic tangent of <expression> as a floating point value. The
memory space attribute of the result will be None.
Example:
HTAN
=
@TNH(VAL)
; hyperbolic tangent
@UNF(<expression>)
Converts <expression> to a floating point value. For fractional DSPs (DSP56300)
<expression> should represent a binary fraction. The memory space attribute of
the result will be None.
Example:
FRC
EQU
@UNF($400000)
; FRC = 0.5
@XPN(<expression>)
Returns the exponential function (base e raised to the power of <expression>) as
a floating point value. The memory space attribute of the result will be None.
Example:
EXP
36
EQU
@XPN(1.0)
; EXP = 2.718282
DSP Assembler Reference Manual
Freescale