PC has 3 registers to enable up to 21 bit addressing = (PCLATU,PCLATH,PCLATL) Bits. A goto/call should be able to reach anywhere in program memory.=20 wheras a rcal is +/- 512 one-word instruction jump and BRA is +/- 64 = one-word instructions.=20 Kind Regards David Huisman -----Original Message----- From: Jinx [mailto:joecolquitt@CLEAR.NET.NZ] Sent: Friday, 10 October 2003 12:04 PM To: PICLIST@MITVMA.MIT.EDU Subject: Re: [PIC]: 18F GOTO > How come MPLAB only accepts 16 bits. I can't do better than 15 (or is it 14 MSb because of the word alignment). 0000-7FFE with MPASM 3.30 Where was it you wanted to jump to BTW - not outside the chip surely ? ;-) -- 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