Hi,
I started writing assembly code in one of the ARM7TDMI-S architecture based controller, But i surprised of myself, because I am not able to find how to give the origin or starting address of the code.
Example when I was writing assembly code in 8051, I was using "ORG" for writing the start address of the code.
Thanks in Advance for the reply
Deepak
With a Relocatable Assembler, the addresses are resolved at link time. You can direct placement of sections using a scatter file (linker script).
You usually don't need any control of the entry point, the vector address is fixed, or manipulated by the hardware. The reset code behind the vector usually doesn't need to exist at any particular address, beyond relative branch limits, or fixed literal load.
Why do you need specific code placement? And why can't that be achieved by telling the linker where to place the code?
Thanks,
I understand what you are telling.
You mean to say it is not possible to give the direct address in the code itself, Please correct me if my understanding is wrong.