> Second option, more elegant: > assuming KEYVAL figures are between 0 and 15, > > movlw KEYVAL > addwf pcl,f > retlw h'01' ; response to KEYVAL=0 > retlw h'06' ; response to KEYVAL=1 > retlw h'02' ; response to KEYVAL=2 > retlw h'03' ; response to KEYVAL=3 > retlw h'05' ; response to KEYVAL=4 > retlw h'04' ; response to KEYVAL=5 > retlw h'02' ; response to KEYVAL=6 > ... Thanks! I like that second option, also because i understand it... :) > Be careful to have your table in a single page!!! I will take care but don't have much clue what the this page thing is.. but will find out soon enough i'm afraid. > -------------------- > Jeszs Gonzalo > Lesn (SPAIN) > -------------------- Aart. -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.