global X name, [initialValue] [replication]
The globalX macro allocates public static-memory storage.
X
Specifies the size of the 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; the default is zero if no value is specified.
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 example demonstrates the usage of the globalX macro:
globalW flag,1
globalB string,0, 30