Relocatable code is only mandatory for dsPIC. Old absolute code will continue to work fine in MPLAB 7.1 for PIC10/12/14/16/17/18. Bob Ammerman RAm Systems ----- Original Message ----- From: "Roy J. Gromlich - PA" To: "Microcontroller discussion list - Public." Sent: Sunday, May 22, 2005 7:11 PM Subject: Re: [PIC] MPLAB v7.1 changes ? Too bad they chose to make relocatable mode mandatory - I was about to get the upgrade, but I don't want to have two version on my machine. I have TONS of olf-style code which 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 compatibili8ty mode - which will allow it to handle old-style code? RJG ----- Original Message ----- From: Olin Lathrop To: Microcontroller discussion list - Public. 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 -- 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 -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist