We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I've created my own Startup file to be used that calls
cseg at 0
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).
I've only included my startup file and not the sample. But it still overlaps at 0.
if the modified startup does not have the entry label and exit call you will get "startup missing" in commandline mode. I guess in the IDE mode that would make the standard get included. I imagine this is the part required:
?C_C51STARTUP SEGMENT CODE CSEG AT 0 ?C_STARTUP: ljmp ?C_START end
Ok. Thank you. I was missing a small part of that.