Everything

SIZEOF


Returns the size of the term section after linking.

[Function]

Returns the size of the term section after linking.

[Application example]

Allocates a 4-byte area, and initializes it with the size of the default section (.text).

.DB4    SIZEOF(.text)

 

To allocate a 4-byte area and initialize it with the size of the user-defined section (user_text).

.DB4            SIZEOF(user_text)

 

To use this operator in conjunction with STARTOF:

.DB4            STARTOF(.data) + SIZEOF(.data)

 

To specify EX_ATF2000 as the name for an absolute section.

.SECTION        EX, DATA_AT     0xF2000
.DB4            SIZEOF(EX_ATF2000)

[Caution]

-

This operator can be specified in combination with SIZEOF by using the binary operator "+".
Note, however, that it is not possible on the same line to write multiple instances of STARTOF and SIZEOF or include an expression other than STARTOF or SIZEOF.

-

For an absolute section, write "_AT" + a section name with an address specified (see ".SECTION", ".CSEG", ".DSEG", and ".ORG").