Indicate to the assembler the start of a bit section.
Symbol field |
Mnemonic field |
Operand field |
Comment field |
[section-name] |
.BSEG |
[relocation-attribute] |
[; comment] |
A memory following the .BSEG directive belongs to the bit section until it comes across a section definition directives. |
This directive defines a portion that defines bit data in a program. |
This directive can specify the start address of a section by specifying BIT_AT in the operand field. |
For the code flash area, mirror area, RAM area, and saddr area, see the user's manual of the device. For the RAM area, note that only the on-chip RAM allocated to an address range from 0xF0000 to 0xFFFFF is supported. |
If the specified absolute expression is illegal or its value is outside the range from 0x00000 to 0xFFFFF, an error will occur. |
The two sections with the same name and different relocation attributes SBSS and SBSS_BIT, relocation attributes BSS and BSS_BIT, or relocation attributes BSS_AT and BIT_AT are processed as a single consecutive section in the assembler. |
The section is output to the object file with the relocation attribute of SBSS, and the optimizing linker allocates the section with the relocation attribute of SBSS. |
The section is output to the object file with the relocation attribute of BSS, and the optimizing linker allocates the section with the relocation attribute of BSS. |
The section is output to the object file with the relocation attribute of BSS_AT, and the optimizing linker allocates the section with the relocation attribute of BSS_AT. |
The instructions that can be written in a section defined by this directive are the .DBIT, .EQU, .SET, .PUBLIC, .EXTBIT, and .EXTERN directives and macro calls. |
When a section definition does not include a section name, the assembler gives a separate default section name for each relocation attribute. |
A section having one of the above names has the corresponding relocation attribute shown above and no different relocation attribute can be assigned.
When a section definition does not include a relocation attribute, relocation attribute "SBSS_BIT" is assumed. |
To define section ".sbss_bit" having the SBSS_BIT attribute.
To define section "_B" having the BSS_BIT attribute.
To define section "EX" having the BIT_AT attribute with address 0xffe20 specified.