Hi,
I'm using the keil to compile a project for the 8051.
I want to place a single function in a specific address in the rom.
I found a lot of answers, in the forum, but non of them actually worked.
How can i "tell" the keil that the specific function MUST be at address 0x1234, for example? if it helps, the function is written in a seperate file. Thanks, Noam
So, anyone has any idea how to place a function in a specific address in the ROM?
You still haven't described what you have already tried and why it did not work.
You can use the linker to locate segments and functions at certain memory locations. How to do this can be found in the documentation of the linker you are using (BL51 or LX51), for example
http://www.keil.com/support/man/docs/bl51/bl51_code.htm
Thank you very much. the kink that you sent me worked. I still didn't come to conclusion what happens to the original code.