Skip to content

Syntax Error when Popping the Link Register (using code from Docs) #14312

Discussion options

You must be logged in to vote

ANSWER
Instead of

pop({lr})
bx(lr)

These are combined into:

pop({pc})

It takes the address in the link register and shoves it directly into the program counter.

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@rkompass
Comment options

Answer selected by samneggs
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants