Arm Community
Site
Search
User
Site
Search
User
Groups
Arm Research
DesignStart
Education Hub
Graphics and Gaming
High Performance Computing
Innovation
Multimedia
Open Source Software and Platforms
Physical
Processors
Security
System
Software Tools
TrustZone for Armv8-M
中文社区
Blog
Announcements
Artificial Intelligence
Automotive
Healthcare
HPC
Infrastructure
Innovation
Internet of Things
Machine Learning
Mobile
Smart Homes
Wearables
Forums
All developer forums
IP Product forums
Tool & Software forums
Pelion IoT Platform
Support
Open a support case
Documentation
Downloads
Training
Arm Approved program
Arm Design Reviews
Community Help
More
Cancel
Developer Community
Tools and Software
Open Source Software and Platforms
Jump...
Cancel
Open Source Software and Platforms
GNU Toolchain forum
Invalid assembly instruction MOV PC, R13 Cortex M3
Android blog
Forums
Help
Jump...
Cancel
New
State
Not Answered
Replies
3 replies
Subscribers
2 subscribers
Views
2761 views
Users
0 members are here
Toolchain
Cortex-M3
Cortex-M
GNU
Related
Invalid assembly instruction MOV PC, R13 Cortex M3
Offline
Umut Umut
over 7 years ago
Note: This was originally posted on 24th March 2009 at
http://forums.arm.com
Hi,
I am trying to compile linux kernel 2.27 with CodeSourcery GNU toolchain 4.3.2 and somehow I am getting assembler error for instruction
MOV PC, R13
Well, for some reason ARM Cortex M3 assembler is not happy with moving link register (LR a.k.a R13) to program counter.
I tried to find some documentation about this issue on arm site but no luck so far. I have a way to find a solution for this which is first moving R13 (LR) to a general purpose register and then moving general purpose register to program counter (PC).
MOV R0, R13
MOV PC, R0
Thanks for the comments.
More questions in this forum
By title
By date
By reply count
By view count
By most asked
By votes
By quality
Descending
Ascending
All recent questions
Unread questions
Questions you've participated in
Questions you've asked
Unanswered questions
Answered questions
Questions with suggested answers
Questions with no replies
Not Answered
Arm-Math, DSP function
0
290
views
0
replies
Started
2 months ago
by
DRsecr
Not Answered
newlib: why cplusplus doesn't support -D_FORTIFY_SOURCE=2
0
296
views
0
replies
Started
3 months ago
by
sword_i@sina.com
Not Answered
Does arm-none-eabi-gcc support integer overflow check -ftrapv?
0
300
views
0
replies
Started
3 months ago
by
sword_i@sina.com
Not Answered
ARM - differences between cross compilng on x86 and x64
0
Toolchain
Cross compiling
284
views
0
replies
Started
3 months ago
by
marcinb
Not Answered
xPack GNU Arm Embedded GCC v9.3.1-1.1 released
0
420
views
0
replies
Started
3 months ago
by
Liviu Ionescu
<
>
View all questions in GNU Toolchain forum