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
You still don't like the route of placing your startup code in a named area and tell the linker that this area should be linked to address 0x0100?
Exactly why do you dislike the linker?
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.