LOOKUP a,[1,2,3,4,5,6,7],b.
a & b would be byte variables. a = the index pointer. b = the byte variable
the constant value from the table is placed in.
a = 1
LOOKUP a,[1,2,3,4,5,6,7],b
b now = 2.
This creates a constant array in ROM similar to const char a[]={1,2,3,4,5,6,7};
in C where b=a[1].
Bookmarks