staticX name, [initialValue], [replication]
The staticX macro allocates private static-memory storage.
X
Specifies the size of storage to be allocated. This parameter can be one of the following types:
Type | Description |
B | Byte |
W | Word |
D | Doubleword |
Q | Quadruple word |
T | 10 bytes |
CP | Code pointer (one word for small and compact models) |
DP | Data pointer (one word for small and medium models) |
name
Specifies the reference name of the allocated memory.
initialValue
Specifies an initial value for the storage. This parameter is optional; if no value is specified, the default is zero.
replication
Specifies a count of the number of times the allocation is to be duplicated. This parameter, which is optional, generates the DUP assembler operator.
The following examples demonstrate the usage of the staticX macro:
staticW flag,1
staticB string, , 30