Absolute Value. Freescale Semiconductor sc100
تبلیغات
تبلیغات
Freescale Semiconductor, Inc.
SC_Assem.book Page 53 Thursday, September 23, 2004 10:44 AM
Expressions
Functions
Table 3.3 Assembler Function List ( continued)
Type Function
LST — LIST directive flag value
MSP — Memory space
REL — Relative mode
Descriptions of the assembler functions complete this chapter. These descriptions are in alphabetic order, without regard to function types. Although these descriptions show functions in upper case, the functions are not case sensitive.
ABS Absolute Value
Returns the absolute value of the specified expression, as a floating-point value. The result’s memory space attribute is N.
@ABS(expr)
Parameter
expr
Any valid expression.
Example:
MOVE #@ABS(VAL),D4.S
; Load absolute value
ACS Arc Cosine
Returns the arc cosine of the specified expression, as a floating-point value, in the range zero to pi. The result’s memory space attribute is N.
@ACS(expr)
Parameter
expr
Any valid expression that evaluates to a value between -1 and 1.
SC100 Assembler User Guide 53
For More Information: www.freescale.com
دانلود
تبلیغات