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.asm

Hi,
I am starting studying 8051 uC and want to learn 8051 embedded programming, I have silabs 8051f340dk to use.
Just want to ask this, why I should use startup.asm? I've seen a lot of program did use this startup.asm, the bootloader has one and the firmware also has startup.asm loaded.
I am just a little confused since my very basic program that don't use startup.asm run smoothly.
How does startup.asm affect my firmware if I'm gonna use it?

thanks
gi

Parents
  • I'm not sure what a startup.asm file does. In my toolset I have a startup.a51. Even it this assembly file is not included in the project file list, much of the startup code will be included.

    The function of startup.a51 is well documented in the Compiler User's Guide in the Primer section. Basically the code initializes some variables, clears some memory and sets the stack pointer prior to branching to the 'main' entry. All of this is defined by default but the user can optionally configure the startup file.

    Bradford

Reply
  • I'm not sure what a startup.asm file does. In my toolset I have a startup.a51. Even it this assembly file is not included in the project file list, much of the startup code will be included.

    The function of startup.a51 is well documented in the Compiler User's Guide in the Primer section. Basically the code initializes some variables, clears some memory and sets the stack pointer prior to branching to the 'main' entry. All of this is defined by default but the user can optionally configure the startup file.

    Bradford

Children