To make a lookup table in c,I've tried like this
static code unsigned char T[]={0X01,0X02,0X03};
org 3000h db 01h,02h,03h
"i.e assigning some address to the variable" No, it isn't. You can fix the address (see the _at_ keyword in the Manual), or you can have initialisation - but not both! If you really need to fix the location of the table, you must either do it in assembler, or use Linker controls. It's beed discussed ad nauseam - just try a search for "_at_"
But is it possible to prepare one as we do in assembly. org 3000h db 01h,02h,03h Absolutely .h for C modules code unsigned char T[]; .a51 PUBLIC T ... org 3000h T: db 01h,02h,03h Erik