
.sdef
Define Assembly-Time Constant
6-26
Syntax
symbol .sdef value
Description
The .sdef directive functions in the same manner as the .set directive; howev-
er, .sdef can redefine the symbol name multiple times without generating an
error. All instances of .sdef symbols are stripped from the symbol table at the
end of pass 1 analysis. When used with the .if directive, .sdef can conditionally
assemble included blocks of code. This is useful for turning on and off included
library functions.
-
The
symbol must appear in the label field.
-
The
value must be a well-defined expression; that is, all symbols in the ex-
pression must be previously defined in the current source module.
Example
This shows how symbols can be assigned with .sdef.
VarA
.set
15
;
VarB
.sdef 0xAAAA
;
.word VarA, VarB
;
VarB
.sdef 0x5555
;
.word VarA, VarB
; Note the VarB value change
Summary of Contents for TMS320C3 Series
Page 1: ...TMS320C3x DSP Starter Kit User s Guide...
Page 18: ...1 4...
Page 28: ...2 10...
Page 82: ...5 18...
Page 140: ...Communications Kernel Source Code A 12...
Page 145: ...Schematics B 5 DSK Circuit Board Dimensions and Schematic Diagrams...
Page 146: ...Schematics B 6...
Page 147: ...Schematics B 7 DSK Circuit Board Dimensions and Schematic Diagrams...
Page 148: ...Schematics B 8...
Page 149: ...Schematics B 9 DSK Circuit Board Dimensions and Schematic Diagrams...
Page 150: ...Schematics B 10...
Page 154: ...B 14...
Page 160: ...C 6...
Page 166: ...Index 6...