SH-4 Assembler Miscellaneous Directives (Windows CE 5.0)

Send Feedback

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

SH-4 Assembler Directives

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.