Too bad they chose to make relocatable mode mandatory -=20 I was about to get the upgrade, but I don't want to have two=20 version on my machine. I have TONS of olf-style code which=20 is still in use - I don't intend to take the time to go back and rewrite all of it for relocation, so it will assemble in the new MPASM. Is there no switch on the new version - maybe a=20 compatibili8ty mode - which will allow it to handle old-style=20 code? RJG ----- Original Message -----=20 From: Olin Lathrop=20 To: Microcontroller discussion list - Public.=20 Sent: Sunday, May 22, 2005 9:31 AM Subject: Re: [PIC] MPLAB v7.1 changes ? John Piccirillo wrote: > Trying to assemble old code it seems that the statement > > ORG 0x000 > > no long works, but has been replaced by > > RESET_VECTOR CODE 0x000 The first format is used in the archaic absolute mode. The second = format is used in relocatable mode. Unless you've got ancient legacy firmware = to support, forget that absolute mode ever existed. It has taken = Microchip far too long, but they finally seem to be presenting relocatable mode as = the "normal" way of doing things. Note that there is no absolute mode for dsPICs. > ORG 0x004 is replaced by > > INT_VECTOR CODE 0x000 the INT_VECTOR section should start at 4, not 0. > followed by the isr. However, this bombs when I try to assemble it; > it assembles if the isr is put elsewhere and referred to with a goto > label, however, in this case, the CODE designator doesn't seem to be > required before the isr program. You have some general confusion. You need to ** READ THE MANUAL **. = In this case, that is the MPASM / MPLIB / MPLINK guide. Understand what = all the assembler directives do, and how they work with the linker. ***************************************************************** Embed Inc, embedded system specialists in Littleton Massachusetts (978) 742-9014, http://www.embedinc.com --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist