Everything

.align


Aligns the value of the location counter.

[Syntax]

Symbol field

Mnemonic field

Operand field

Comment field

[label:]
.align
line-condition[, absolute-expression]
[; comment]

[Function]

-

Aligns the value of the location counter.

[Description]

-

Aligns the value of the location counter for the current section, specified by the previously specified section definition directive under the alignment condition specified by the first operand. If a hole results from aligning the value of the location counter, it is filled with the value of the absolute expression specified by the second operand, or with the default value of 0.

-

Specify an even number of 2 or more, but less than 231, as the alignment condition. Otherwise, the CC-RH outputs the error message then stops assembling.

-

The value of the second operand's absolute-expression must be in the range of 0x0 to 0xFF. If the value exceeds range of 0x0 to 0xFF, the assembler will use only lower 1-byte of the value as valid data.

-

This directive merely aligns the value of the location counter in a specified file for the section. It does not align an address after arrangement.

-

If this directive is written to a section with relocation attribute "BSS" and an absolute expression is specified, an error will occur.