Hi kordix,
You are right, the command is "psect" not "psec, i saw that command at the hi-tech manual. it should direct the linker to reference to a specific program section. though i dont know how to use it correctly in order to separate my code into 2 parts at the program memory.
Im interested in compiling the whole code, while some of the code will be placed at specific location(lets say between 0000h - 07ffh) and the other part at a different location(starting 0800h). im doing so in ordet to include a bootloader inside my whole code and i need to compile it all so the application will be familiar with some funcions located at the bootloader files.
I know how to do so by separating the code into two different compilation units, though i dont know how to compile it as one all compilation unit.
Do you have any suggestions?
Thanks, Ben.