Everything

STARTOF


Returns the start address of the section specified by the term after linking.

[Function]

Returns the start address of the term section after linking.

[Application example]

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

.DB4            STARTOF(.text)

 

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

.DB4            STARTOF(user_text)

 

To use this operator in conjunction with SIZEOF:

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

[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. The following example will cause an error.

.DB4            STARTOF(.data) +2

-

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

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