Arm Community
Site
Search
User
Site
Search
User
Support forums
Arm Development Studio forum
LDR Register Assignment
Jump...
Cancel
Locked
Locked
Replies
3 replies
Subscribers
119 subscribers
Views
3329 views
Users
0 members are here
Options
Share
More actions
Cancel
Related
How was your experience today?
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion
LDR Register Assignment
Taylor Deiaco
over 12 years ago
Note: This was originally posted on 22nd February 2012 at
http://forums.arm.com
Here I'm doing basic assignments and read write routines for
verfication:
ldr r1, StartRegs
...
StartRegs: .word 0x00000989
This code worked fine, but a few lines down the program I try
to assign r4 a value just like StartRegs. Instead of being able to
use the same format in the previous code I posted, it was neccessary
to use this format:
ldr r4, =EndRegs
...
EndRegs: .word 0xFFFFFFFF
If I didn't use the "=" operator, r4 was never stored with anything. My question
is why did I have to use the "=" operator in one part of the code as opposed to
another part of the code?
Parents
Jerry Fan
over 12 years ago
Note: This was originally posted on 29th February 2012 at
http://forums.arm.com
ldr rx, [mem], such as
ldr r0, data1
data1 .word 0x00001
ldr rx, =const, such as
ldr r0, =0x12345678
Once "=", a const is expected.
Cancel
Vote up
0
Vote down
Cancel
Reply
Jerry Fan
over 12 years ago
Note: This was originally posted on 29th February 2012 at
http://forums.arm.com
ldr rx, [mem], such as
ldr r0, data1
data1 .word 0x00001
ldr rx, =const, such as
ldr r0, =0x12345678
Once "=", a const is expected.
Cancel
Vote up
0
Vote down
Cancel
Children
No data