First page Back Continue Last page Overview Graphics
The assembler directive section defines a section.
Sections .text, .data, .bsct, and .bss are internally defined by the assembler and should not be redefined.
Variables placed in the .bsct segment are addressed using direct addressing.
Variables placed in the .bss segment are located in register memory space.
The above code defines a section called data1. All of the code defined in this section can be loaded into a set place in memory during the link process.
The sections .text, .data, .bsct and .bss are used by most C compilers including the Cosmic compiler and are predefined. A syntax error is generated if an attempt is made to define any of these sections.
If variables are placed in the .bsct section they will be addressed using direct addressing. The length of this segment cannot be greater than 255 bytes.