This is the mail archive of the binutils@sourceware.org mailing list for the binutils 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: ARM as.


On 28 June 2012 12:50, Ramana Radhakrishnan
<ramana.radhakrishnan@linaro.org> wrote:
> On 28 June 2012 12:00, Dave Pawson <dave.pawson@gmail.com> wrote:
>> I want to store a byte from r1 into the memory address held by r0
>>
>> str r0, r1 produces the error
>
> Try str r0, [r1]
>
> Ramana

Compiles now, thanks... I must be misunderstanding this.
I think:
r0 holds the memory address (ldr r1, label)
r1 holds the source value.
The instruction moves the word in r1 to the address held in r0?
Is that right please?

I'm getting a seg fault?

regards

-- 
Dave Pawson
XSLT XSL-FO FAQ.
Docbook FAQ.
http://www.dpawson.co.uk


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