This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: simple question
- From: Gary Thomas <gthomas at ecoscentric dot com>
- To: Vinayak P Risbud <vinayak at multitech dot co dot in>
- Cc: eCos Discussion <ecos-discuss at sources dot redhat dot com>
- Date: 14 Sep 2002 07:31:51 -0600
- Subject: Re: [ECOS] simple question
- References: <3D82B900.2E56A878@multitech.co.in>
On Fri, 2002-09-13 at 22:20, Vinayak P Risbud wrote:
> ldr r0,=10f
>
> In arm assembly language, can anyone tell me, what is the
> meaning of above statement ?
It puts the address of the local label '10' into register r0,
using a pc-relative addressing mode. It's functionally equivalent
to:
ldr r0,.10f
.data
.10f: .long 10f
.text
...
10:
--
------------------------------------------------------------
Gary Thomas |
eCosCentric, Ltd. |
+1 (970) 229-1963 | eCos & RedBoot experts
gthomas@ecoscentric.com |
http://www.ecoscentric.com/ |
------------------------------------------------------------
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss