SLAA534A June 2013 – June 2020
Symbolic addressing is performed using indexed addressing relative to the PC register. (See Section 4.3.) The data is assumed to be located at a (link-time) constant offset from the code that accesses it. The addressing mechanism is the same whether addressing code or data. Symbolic addressing is sometimes called PC-relative addressing.
Examples include label tables for switch statements, and read-only constant variables that can be placed into the code segment (.const).
The following instruction loads the contents of "sym" into R5.
MOV.W sym, R5