Skip to main content

IAR Embedded Workbench for RL78 5.20

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 RL78 microcontroller.

Functions can be called in different ways—directly, or via a function pointer. or via a function pointer table. In this section we will discuss how these types of calls will be performed for each code model.

The normal function calling instruction is the call instruction:

            call label

The following sections illustrates how the different code models perform function calls.