I have a question about how and where code is placed in the program memory. I'm not even shure what to ask about, but I'll give it a try:
I'm using MPlab 8.20 to modify a program for a PIC18F258. My task is to do some minor changes. The code was written 4-5 years ago, with an older version of MPlab. I have copied the whole project folder to my computer, and open the project file. So far, so good. At first build it asks wich mpasmwin.exe and mplink.exe I want to use. I think the project file points to some older versions, in a different folder. I choose the newest default from mplab. Building the project is all fine. But I notice a difference in where the code is put in the program memory. If I import the original hex-file, some of the code is placed from address 6000. With my assembly, all code is placed from address 0000. Is there any good reason for this? The program seems to work fine, but I don't know all the details about pics. I'm afraid to do something stupid here. Heck, I'm just doing a small change in a text, and I end up taking a masters degree in programming.
I'm using MPlab 8.20 to modify a program for a PIC18F258. My task is to do some minor changes. The code was written 4-5 years ago, with an older version of MPlab. I have copied the whole project folder to my computer, and open the project file. So far, so good. At first build it asks wich mpasmwin.exe and mplink.exe I want to use. I think the project file points to some older versions, in a different folder. I choose the newest default from mplab. Building the project is all fine. But I notice a difference in where the code is put in the program memory. If I import the original hex-file, some of the code is placed from address 6000. With my assembly, all code is placed from address 0000. Is there any good reason for this? The program seems to work fine, but I don't know all the details about pics. I'm afraid to do something stupid here. Heck, I'm just doing a small change in a text, and I end up taking a masters degree in programming.