Roland wrote: >What I'm unsure of is: >- in the old code I had; goto $ + 5 >- in the new code do I have to use; bra $ + 5 >but I still get: "Warning 226: Destination address must be word aligned" >what do I do to alleviate this? > > > To quote a post from Jan-Erik in the "Linker Error" thread earlier this month... "One the 16-line of PIC's the program counter counts program "words". That is, each single increment of the PC points to a valid (14-bit) instruction. On the 18-line of PIC's the program counter counts "bytes", and two bytes makes up one 16-bit instruction. That is, when referencing valid instructions, the LSB of the PC must be zero "0". The byte adressing is used when reading/writing tables in program space using the TBLxxx instructions. Now, with that said, I can't tell how this relates to your code, since you don't show enough of it to tell. The most common case when porting "jump tables" from the 16 to the 18-line, is to multiply the "index" with two before adding it to the PCL. Such as a simple shift left..." -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist