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 |
|
Declares a section. |
.ORG |
|
Sets the value of the location counter. location counter value must be an absolute value with no forward reference symbols. |
.ALIGN |
|
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