NOWS/MEMO
LDR vs. MOV
emzei
2014. 4. 27. 23:04
11 posts
http://www.cl.cam.ac.uk/freshers/raspbe ... /ok01.html
I've been reading the Baking Pi course (see link above), and I've come to the 4th 'part': Enabling Output. I am confused as to the difference between 'ldr' and 'mov'. Even the definitions given are identical:
mov reg,#val puts the number val into the register named reg.
ldr reg,=val puts the number val into the register named reg.
Besides the slightly different syntax, what is the difference? (And yes, I RTFM (or at least his explanation) several times. I didn't get it.)
I've been reading the Baking Pi course (see link above), and I've come to the 4th 'part': Enabling Output. I am confused as to the difference between 'ldr' and 'mov'. Even the definitions given are identical:
mov reg,#val puts the number val into the register named reg.
ldr reg,=val puts the number val into the register named reg.
Besides the slightly different syntax, what is the difference? (And yes, I RTFM (or at least his explanation) several times. I didn't get it.)
- Posts: 7
- Joined: Wed Jan 11, 2012 8:59 pm