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

direct the code to main{} in address 0x0000

Hi
i use SW reset command in my code.
after reset, PC is set to address 0x0000.
unfortunately at this address i can't find nor main{} neither JMP to main.
which are the tools i can use (startup.a51 or others) in order to direct the program on address 0x0000 to main{}?

Parents
  • direct the code to main{} in address 0x0000 makes me assune you are using 'C'

    startup jumps to autogenerated code that "stuff all variables with initial values specified" which then jumps to main()

    if you do not muck around deleting files and stuff this just works

Reply
  • direct the code to main{} in address 0x0000 makes me assune you are using 'C'

    startup jumps to autogenerated code that "stuff all variables with initial values specified" which then jumps to main()

    if you do not muck around deleting files and stuff this just works

Children
No data