Partager via


SH-4 Assembler Section and Location Directives (Windows Embedded CE 6.0)

1/5/2010

The following table lists shows SH-4 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

Reference

SH-4 Assembler Directives