This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: simple question


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]