This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

STARTUP.A51

I've created my own Startup file to be used that calls

 cseg at 0 
along with many other things. But when I run the compiler, it pulls in
 cseg at 0 
from the pre-made STARTUP.A51 file contained in the library. Since I have already initialized cseg to 0 and then it is done again in the STARTUP.A51 file, I am getting an overlap error. I don't want to have to use the pre-made STARTUP.A51 file from the library but is there any way to keep it from automatically being called?

Parents
  • cseg isn't a variable or a function to be called. It's an assembler directive that sets internal state in the assembler while it is assembling. In this case, it sets the start address of the current code segment.

    Naturally, you can have only one chunk of code that starts at location zero.

    If you want to have your own startup code, you just include your version of the STARTUP.A51 file in the file list of your uV2 project (and don't include the sample version, so that there's only one).

Reply
  • cseg isn't a variable or a function to be called. It's an assembler directive that sets internal state in the assembler while it is assembling. In this case, it sets the start address of the current code segment.

    Naturally, you can have only one chunk of code that starts at location zero.

    If you want to have your own startup code, you just include your version of the STARTUP.A51 file in the file list of your uV2 project (and don't include the sample version, so that there's only one).

Children