P89V51RD2 Code starting location

I am using P89V51RD2, and I am coding in C.
I want my code to begin at address 0x2001. How can I do that with the help of C code?

Parents
  • See the linker SEGMENTS (or CODE) directives. You can place main() where you like.

    Assuming, that is, that "main" what is you mean by "my code". Your code starts at address 0, almost immediately jumps somewhere else (see STARTUP.A51), and soon jumps to main. It's all your code, in the sense that you control the horizontal and the vertical.

Reply
  • See the linker SEGMENTS (or CODE) directives. You can place main() where you like.

    Assuming, that is, that "main" what is you mean by "my code". Your code starts at address 0, almost immediately jumps somewhere else (see STARTUP.A51), and soon jumps to main. It's all your code, in the sense that you control the horizontal and the vertical.

Children
More questions in this forum