Download VisualDSP++ 2.0 Assembler & Preprocessor Manual for
Transcript
Assembler Syntax Reference Comment Conventions The assembler supports C- and C++-style formats for inserting comments into assembly sources. Note that the assembler does not allow nested comments. Table 2-7 lists and describes the easmts comment conventions. Table 2-7. Comment Conventions Convention Description /* comment */ A “/* */” string encloses a multiple-line comment. // comment A pair of slashes “//” begin a single-line comment. Assembler Directives Directives in an assembly source file control the assembly process. Unlike instructions, directives do not produce opcodes during assembly. Use the following general syntax for the assembler directives: .directive [/qualifiers |arguments]; Each assembler directive starts with a period (.) and ends with a semicolon ( ;). Some directives take qualifiers and arguments. A directive’s qualifier immediately follows the directive and is separated by a slash (/); arguments follow qualifiers. Comments may follow the directive’s terminating semicolon. Assembler directives can be uppercase or lowercase. 2-38 VisualDSP++ 2.0 Assembler & Preprocessor Manual for TigerSHARC DSPs