SLAA534A June 2013 – June 2020
When the called function is known at compile time, all architectures use a direct call instruction. This instruction may use an immediate, absolute, or symbolic addressing mode. The examples here show only the immediate addressing modes.
The MSP430 uses the CALL instruction, which has a 16-bit addressing mode. This addressing mode reaches all valid code memory.
CALL #func ; immediate mode, call func
The MSP430X small code model is identical to the MSP430. CALL instructions will not reach the entire address space. However, with the small code model, no code can be located beyond the lower 64 KB.
The MSP430X large code model uses the CALLA instruction, which has a 20-bit addressing mode. This addressing mode reaches all valid code memory.
CALLA #func ; immediate mode, call func