Yahoo Groups archive

Lpc2000

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

Message

Re: [lpc2000] Beginner questions

2005-08-26 by 42Bastian Schick

Brian C. Lane <brian@...> schrieb am Thu, 25 Aug 2005 17:01:14 
-0700:

I strongly suggest to read ARM ARM (Architecture Reference Manual).


>
> That's what I suspected. How big of a number can you fit into a single 
> MOV?

8 Bits anywhere within 32bit.

Means e.g.:
mov	r1,#255
mov	r1,#0xff00
mov	r1,#0xff0000


> Another related question - what's the difference between a LDR and a
> MOV? I understand the LDRH and LDRB for 16 and 8 bit loads, but don't
> see why there is a MOV if a LDR does the same thing?

ARM is RISC and has a Load/Store architectur.

MOV = between registers.

LDR/STR =  register <=> memory (or memory mapped peripherals !)

Again, get ARM ARM and read it, it's worth it, and you get answers
faster :-)

If you still have questions, come back. But I also suggest to google
comp.sys.arm, many question have been answered there.

-- 
42Bastian Schick

Attachments

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.