SHASM Section and Location Directives

The following table lists shows SHASM assembler directives for Section assignment and the location counters.

Directive Syntax Description
.SECTION
.SECTION <section name> [,<section type>
[,<section attributes>...]]
Declares a section.
.ORG
.ORG <location-counter-value>
Sets the value of the location counter. location counter value must be an absolute value with no forward reference symbols.
.ALIGN
.ALIGN <boundary alignment value>
Adjusts the value of the location counter to a multiple of boundary alignment value. boundary alignment value must be an absolute value with no forward reference symbols.

The assembler also provides a default section for the situations in which no section has been declared. The following list shows the kinds of statements and instructions for which SHASM provides a default section.

  • Executable instructions
  • Data reservation assembler directives
  • .ALIGN assembler directive
  • .ORG assembler directive
  • Reference to the location counter
  • Statements consisting of only the label field

See Also

SHx Series Assembler Directives | Understanding the Section Directive | SHASM Symbol Handling Directives | SHASM Data and Data Area Directives | SHASM Function-Definition Directives | SHASM Debug Information Directives | SHASM Listing Directives | SHASM Miscellaneous Directives | SHASM Conditional Assembly Directives | SHASM Macro Directives

 Last updated on Thursday, April 08, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.