Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Thread

ARM-ARM question

ARM-ARM question

2006-02-03 by jayasooriah

Hello,

I do not have my ARM-ARM with me anymore and I am hoping someone here
can help answer the following question.

If word @0 is 0x12345678, word at @4 is 0, and r0 contains 1, what
should be the contents of r0 (and r1) after executing "ldr r1, [r0], #4"?

Thanks in advance.

Jaya

Re: [lpc2000] ARM-ARM question

2006-02-03 by 42Bastian Schick

jayasooriah <jayasooriah@...> schrieb am Fri, 03 Feb 2006 
05:39:02 -0000:

> Hello,
>
> I do not have my ARM-ARM with me anymore and I am hoping someone here
> can help answer the following question.
>
> If word @0 is 0x12345678, word at @4 is 0, and r0 contains 1, what
> should be the contents of r0 (and r1) after executing "ldr r1, [r0], #4"?

ldr from 1 is undefined, on most ARM I saw you get 0x12345600 or an
abort.
So the contents of r0 is as well undefined.
 From heart: ldr rn,[rm],#x : rn = *rm; rm += x;
-- 
42Bastian Schick

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.