I am using CVASM16 which is 8051 compatible instruction set for pic. The instruction "jmp pc+w" is correct but the actual problem is "retw" which have limitation of "256 word block" I am caring of it but still have problem of undefined return. Kashif Ali Justin Fielding wrote: > I have used: > > lookup addwf PCL,F > retlw b'11101011' > retlw b'00100001' > retlw b'11000111' > ertc, etc,etc > > HOpe this helps... > > ----- Original Message ----- > From: "Kashif Ali" > To: > Sent: Monday, May 07, 2001 7:19 AM > Subject: Re: [PIC]:a newbie mpasm question > > > hi all > > > > I new user of pic microcontroller. > > > > facing problem in lookup table using command > > > > lookup > > jmp pc+w > > retw 00h,01h,02h,03h,04h > > retw 00h,05h,06h,07h,08h > > retw 00h,09h,02h,03h,04h > > retw ......... > > > > this command "jmp pc+w" did not return with w on its location it return > > but undefined location. > > > > give solution of my problem or an practical example of lookup table for > > 128 bytes. > > > > Kashif ali > > > > -- > > http://www.piclist.com hint: PICList Posts must start with ONE topic: > > [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads > > > > > > > > -- > http://www.piclist.com hint: PICList Posts must start with ONE topic: > [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads