I want to put the code written in assembly file at specific location say 0x5000. Can someone give me procedure with proper example for doing the same code? I have checked using "AREA" directive, but unable to find how to specify the address in it.
Why, seems to be trying to do unnecessarily complex things with a skill set that doesn't support the task. Start by mastering the simpler tasks before tackling the complex ones.
Consider using a linker script (scatter file) to control code placement in regions of memory.
Thanks Andrew and Pier. I was also trying to do the code placement using scatter file , but I was unable to find the correct method. But now I found the proper scatter file for the code placement. I posted this thread only to ensure that, whether there is only a single way (scatter file) or any other simple ways.
You csn try using a SCATTER file.