4.8.7 Obtaining the Starting Address of a Specific Section
The .startof.(section_name)
operator can be used to obtain the starting address of a specific section after the link process has occurred. For example, to obtain the starting address of the .data
section, use:
mov #.startof.(.data), w1