- Name:
-
lookup
- Syntax:
-
LOOKUP offset,(data0,data1...dataN),variable
Offset - is a variable/constant which specifies which data# (0-N) to place in Variable.
- Description:
-
Lookup data specified by offset and store in variable (if in range).
The lookup command is used to load variable with different values. The value to be loaded in the position in the lookup table defined by offset. If offset exceeds the number of entries in the lookup table the value of variable is unchanged.
Each lookup is limited to 256 entries, but each entry may be a bit, byte or word constant or variable.