SHASM Data and Data Area Directives
The following table shows SHASM assembler directives for data and data area reservation.
Directive | Syntax | Description |
---|---|---|
.COMMON |
|
Reserves data area with default initialization to zeros. |
.DATA |
|
Reserves integer data. The following list shows the data size of symbol.
|
.DATAB |
|
Reserves integer data blocks. The block count specification must be an absolute value with no forward reference symbols. |
.FDATA |
|
Reserves floating-point data. For more information about FDATA, see SHASM Floating Point Data. |
.FDATAB |
|
Reserves floating-point data blocks. For more information about FDATAB, see SHASM Floating Point Data Blocks. |
.FRES |
|
Reserves floating-point area. The area count specification must be an absolute value with no forward reference symbols. |
.SDATA |
|
Reserves character string data. |
.SDATAB |
|
Reserves character string data blocks. |
.SDATAC |
|
Reserves character string data with length. |
.SDATACB |
|
Reserves specified number of character string data blocks with length. A character string with length is a character string with an inserted leading byte that indicates the length of the string. |
.SDATAZ |
|
Reserves character string data with zero terminator. |
.SDATAZB |
|
Reserves specified number of character string data blocks with zero terminator. |
.RES |
|
Reserves data area. The area count specification must be an absolute value with no forward reference symbols. |
.SRES |
|
Reserves character string data area. The character string area size specification must be an absolute value with no forward reference symbols. |
.SRESC |
|
Reserves character string data area with length. A character string with length is a character string with an inserted leading byte that indicates the length of the string. |
.SRESZ |
|
Reserves character string data area with zero terminator. |
String constants in the .SDATA family of directives are allowed to be one or more of the following in any combination:
"quoted string"
<control char expression>
The assembler requires that parentheses be put around string constants if they are to be used as part of more complicated expressions such as string comparisons in .SDATA and related directives. In all other contexts, string constants may only be double quoted strings, and they may be used without parentheses.
See Also
SHx Series Assembler Directives | SHASM Section and Location Directives | SHASM Symbol Handling 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.