EQUATE
ANSI
The EQUATE compiler directive (which may be abbreviated as EQU) assigns Data Definition Labels to binary, decimal, hex, or octal values ranging from zero to 65535 (decimal). The instruction uses the following formats:
|
|
|
|
|
|
|
|
|
|
Where:
label
Required. A Data Definition Label.
value
Required. A previously equated label or a binary, decimal, octal, or hexadecimal value assigned to the label.
REDEFINE
Optional. A keyword that allows modification of an equated value for a label. No error is given if the label does not exist.
directive
Required. One of the valid directives from the table below.
datalabel
Required. A previously defined Data Definition Label.
Flags Affected: NONE
Note the following:
Valid {directives} are as follows:
|
Directive |
Retrieves ... |
|
DTYPE |
a sixteen-bit value representing the type of the data variable. The type values can be found in the PLBEQU.INC include file. |
|
DTYPEBASE |
an eight-bit value representing the base type value of {datalabel} variables. These equated values can be found in the PLBEQU.INC include file. |
|
DTYPESUB |
an eight-bit value representing the subtype value of {datalabel} variables. Only some variables have subtypes. These equated values can be found in the PLBEQU.INC include file. |
|
ATYPE |
a value that identifies whether a {datalabel} variable is an array variable. If a value of zero is retrieved, the variable is not an array. Otherwise, the value represents the total number of elements in the array. |
|
PTYPE |
a value that indicates whether the variable is a pointer. A value of zero indicates that a variable is not a pointer. |
|
MDEFINED |
a value as defined for the MDEFINED compiler directive. |
|
DEFINED |
a value as defined for the DEFINED compiler directive. |
|
MDEFAULT |
a value as defined for the MDEFAULT compiler directive. |
See Also: Example Code, Compiler Directives
![]() |