Im so sorry, made a fault in subtracting the index. Here is the right way. Enter with pointer in w Exit with Value1 to Value4 in w ... addwf pcl,f xorlw ( 0 xor VALUE1 xor VALUE2 xor 1 ) xorlw ( 1 xor VALUE2 xor VALUE3 xor 2 ) xorlw ( 2 xor VALUE3 xor VALUE4 xor 3 ) xorlw ( 3 xor VALUE4 ) ... Germain -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body