Set Symbol to Value. Freescale Semiconductor sc100
Реклама
Реклама
Freescale Semiconductor, Inc.
SC_Assem.book Page 148 Thursday, September 23, 2004 10:44 AM
Assembler Directives
Descriptions
Related Directives
SECFLAGS, SECTION
Example
The SECTION directive starts new section .data_output. The non-standard name means that the section receives .text default type and attributes:
PROGBITS, ALLOC, and EXECINSTR. The SECFLAGS directive changes the attributes; the SECTYPE directive changes the type to NOBITS.
SECTION .data_output
SECFLAGS write,alloc,noexecinstr
SECTYPE nobits
...
ENDSEC
SET Set Symbol to Value
Assigns the specified value to the specified symbol.
label SET value
SET label value
Parameters
label
A symbol.
value
An absolute expression. Must not contain any forward references.
Remarks
If you use this directive to define a label, another SET directive elsewhere in the program can redefine the label. Use this directive to establish temporary or reusable counters within a macro.
Related Directives
DEFINE , EQU , G SET
Example
COUNT SET 0 ; Initialize count
148 SC100 Assembler User Guide
For More Information: www.freescale.com
Изтегляне
Реклама