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

How to disable Startup code for P89C51RD2HBP

Hi,
I am using Keil Evaluation copy, and for the first time. I am well conversant with other C-Compiler for 8051 family.

I want to disable the startup code generated by the compiler.
I have opened a new project, and disabled the option to load the startup code. But, at the address 0000, it puts the code to Jump to another small startup routine which does some initialization and initializes the stack. I do not want this code to be generated at all.
I know it sounds crazy "not to have a startupcode", but the requirement is such that I do not want the startup code at all.

My requirement is:

1. My C program must start at Location 4000h.
2. Not a single line of code/instruction between 0000h to 3fffh.
3. Initailizations such as memory clearing, or Stack initializations,etc must not be done at all, even by the program starting at 4000h.

Thanking You,
Mr. Kiran V. Sutar.

0