Assembler instructions used for calling functions
In this section:
This section presents the assembler instructions that can be used for calling and returning from functions on the RX microcontroller.
Functions can be called in different ways—directly or via a function pointer.
The normal function calling instructions are BSR (and JSR):
bsr _labelThe location that the called function should return to (that is, the location immediately after this instruction) is stored on top of the stack. If the destination label is out of range, the linker will insert a relay jump (veneer) that jumps to the destination. The linker generates relay jumps automatically if they are needed.