ARM as.
Dave Pawson
dave.pawson@gmail.com
Thu Jun 28 12:34:00 GMT 2012
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
More information about the Binutils
mailing list