String Length. Freescale Semiconductor sc100
विज्ञापन
विज्ञापन
Freescale Semiconductor, Inc.
SC_Assem.book Page 64 Thursday, September 23, 2004 10:44 AM
Expressions
Functions
H
Specifier for the high counter.
expr
Specifier for a numbered counter; must evaluate to an integer value.
Remarks
This function does not work correctly if you use it to specify the runtime counter value of a relocatable overlay. This is because the resulting value is an overlay expression, and you may not use overlay expressions to set the runtime counter for a subsequent overlay.
Example:
ADDR = @LCV(R) ; Save runtime address
LEN String Length
Returns the length of the specified string, as an integer. The result’s memory space attribute is N.
@LEN(string)
Parameter
string
Any valid string.
Example:
SLEN SET @LEN('string') ; SLEN = 6
LFR Convert Floating Point to Long Fractional
Scales and convergent rounds a floating-point expression, returning its fractional representation as a long integer. The result’s memory space attribute is N.
@LFR(expr)
Parameter
expr
Any valid, floating-point expression.
64 SC100 Assembler User Guide
For More Information: www.freescale.com
डाउनलोड
विज्ञापन