Hi, I would like to locate code of the function on the absolute address in a code memmory (analogous to absolute variable location : int code i _at_ 0x2000;) - is it possible in some way? Thanks, Peter
This is the Linker's job - see the Linker Manual
Thank, I have looked at A51 manual. But I didn't find exactly what i need-I have just found CSEG directive but it doesnt work how I need. I need place the code of one function (from all program) to some specific absolute address (then jump to this address and run the function). Can you give some suggestion about which directives I need for resolution of my problem?..Thank you very much, Bye Peter
And since when is A51 the linker? You've referred to the linker manual, explicitly. In a nutshell, you'll have to: 1) put the function in question into a named section of its own. 2) tell the linker where to locate that particular section.
"And since when is A51 the linker? You've referred to the linker manual, explicitly." Actually, the A51.pdf file is the manual for both the Assembler and the Linker. Its full title is, "Macro Assembler and Utilities User's Guide"
Maybe this can help: http://www.keil.com/support/docs/359.htm