Arm Community
Site
Search
User
Site
Search
User
Groups
Education Hub
Distinguished Ambassadors
Open Source Software and Platforms
Research Collaboration and Enablement
Forums
AI and ML forum
Architectures and Processors forum
Arm Development Platforms forum
Arm Development Studio forum
Arm Virtual Hardware forum
Automotive forum
Compilers and Libraries forum
Graphics, Gaming, and VR forum
High Performance Computing (HPC) forum
Infrastructure Solutions forum
Internet of Things (IoT) forum
Keil forum
Morello forum
Operating Systems forum
SoC Design and Simulation forum
SystemReady Forum
Blogs
AI and ML blog
Announcements
Architectures and Processors blog
Automotive blog
Graphics, Gaming, and VR blog
High Performance Computing (HPC) blog
Infrastructure Solutions blog
Internet of Things (IoT) blog
Operating Systems blog
SoC Design and Simulation blog
Tools, Software and IDEs blog
Support
Arm Support Services
Documentation
Downloads
Training
Arm Approved program
Arm Design Reviews
Community Help
More
Cancel
Support forums
Embedded forum
LDR Instruction
Jump...
Cancel
State
Not Answered
Replies
2 replies
Subscribers
140 subscribers
Views
6301 views
Users
0 members are here
Architecture
Instruction Set
Thumb
Thumb2
Options
Share
More actions
Cancel
Related
How was your experience today?
LDR Instruction
subin t
over 11 years ago
Note: This was originally posted on 5th November 2008 at
http://forums.arm.com
Hi all,
I am new to the thumb-2 instruction set. In one of my sample code
I noticed a instruction
LDR r0, =0x12345678;
This instruction actually load the r0 with value (0x12345678).
But I didn't find such an instruction anywhere in the thumb-2 instruction set.
I am wondering anyone is aware of such instruction and from where i can find
more details about the thumb-2 instruction set.
Parents
0
Peter Harris
over 11 years ago
Note: This was originally posted on 5th November 2008 at
http://forums.arm.com
It is also worth noting that "LDR rd, =X" may not assemble to an "LDR" at all.
If X is a small enough literal value to fit into the MOV instruction encoding you might see a single MOV instruction.
Cancel
Up
0
Down
Reply
Accept answer
Cancel
Reply
0
Peter Harris
over 11 years ago
Note: This was originally posted on 5th November 2008 at
http://forums.arm.com
It is also worth noting that "LDR rd, =X" may not assemble to an "LDR" at all.
If X is a small enough literal value to fit into the MOV instruction encoding you might see a single MOV instruction.
Cancel
Up
0
Down
Reply
Accept answer
Cancel
Children
No data