DefX <namelist>
The DefX macro registers the name of a user-defined variable with the Cmacros. Variables that are not defined using the staticX, globalX, externX, parmX, or localX macros cannot be referred to in other macros, unless the name is registered or the variable was defined with the DW assembler directive.
X
Specifies the storage size of the variable. This parameter can be one of the following types:
Type | Description |
B | Byte |
W | Word |
D | Doubleword |
Q | Quadruple word |
T | 10-byte word |
CP | Code pointer (one word for small and compact models) |
DP | Data pointer (one word for small and medium models) |
namelist
Specifies a list of variable names to be defined.
The following example demonstrates the usage of the DefX macro:
maxSize db 132
DefB maxSize
dest equ wordptr es:[di]
DefW <dest>