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

Funny asymmetry with banked register names

Is there a reason why banked registers SP and LR can't be accessed as r13_<mode> or r14_<mode>, but

one has to use SP_<mode> or LR_<mode> instead? It makes macros and inline assembly difficult.

In document (ARMv7-A/R ARM Issue C) it says:

Software using an MRS (Banked register) or MSR (Banked register) instruction specifies one of these registers using a

name shown in Figure B9-1, or an alternative name for SP or LR.

But in both the figure and the text the names are the same: SP or LR. There is no alternative.

Parents Reply Children
No data