Arm Community
Site
Search
User
Site
Search
User
Support forums
Arm Development Studio forum
Question about Program counter
Jump...
Cancel
Locked
Locked
Replies
4 replies
Subscribers
118 subscribers
Views
5512 views
Users
0 members are here
Options
Share
More actions
Cancel
Related
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
Question about Program counter
Camp Phor
over 12 years ago
Note: This was originally posted on 1st October 2012 at
http://forums.arm.com
[size=2]Hey[/size]
[size=2]Can someone please explain why instructions that modify the value of the PC (such as branches or [/size]
[size=2]mov pc, lr[/size]
[size=2]) requireadditional clock cycles to execute than those who don't operate on the PC. [/size]
[size=2]
does branch link modify the value of PC or LR?
[/size]
[size=2]
[/size]
[size=2]
thanks
[/size]
Parents
Peter Harris
over 12 years ago
Note: This was originally posted on 3rd October 2012 at
http://forums.arm.com
For ARM ISA you can also put operand 2 though the shifter "for free" as part of the instruction, so if you want to do x = 2y - z you can do rsb x, z, y,#LSL1
EDIT: Correct shift - too late for this
Cancel
Vote up
0
Vote down
Cancel
Reply
Peter Harris
over 12 years ago
Note: This was originally posted on 3rd October 2012 at
http://forums.arm.com
For ARM ISA you can also put operand 2 though the shifter "for free" as part of the instruction, so if you want to do x = 2y - z you can do rsb x, z, y,#LSL1
EDIT: Correct shift - too late for this
Cancel
Vote up
0
Vote down
Cancel
Children
No data