SHASM Miscellaneous Directives

The following table shows miscellaneous other SHASM assembler directives.

Directive Syntax Description
.RADIX
.RADIX <radix specifier>
Sets the radix, or base, for integer constants with no radix specification. Unless otherwise specified, integer constants are assumed decimal numbers.
.WEAK
.WEAK <weak name>,
<default name>[,<type>]
Declares weak external symbols. Weak externals are a mechanism for programs allowing flexibility at link time.
.END
.END
Declares the end of the source program.
.INCLUDE
.INCLUDE <file name>
Includes the specified file in the current assembly. The file name can include the directory. If the file is not found in the current directory and is not specified with an absolute path, the assembler looks in each of the directories specified in the INCLUDE environment variable.
.LEN
.LEN[ ](<character string>)
Counts the length of a character string.
.INSTR
.INSTR[ ](<character string 1>,
<character string 2>[,<start position>])
Searches for a character string.
.SUBSTR
.SUBSTR[ ](<character string>,
<start position>,
<extraction length>)
Extracts a character string.

The following table shows valid RADIX specifications.

Radix Specification Description
B (or b) Binary
Q (or q) Octal
O (or o) Octal
D (or d) (default) Decimal
H (or h) Hexadecimal
X (or x) Hexadecimal

See Also

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

 Last updated on Thursday, April 08, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.