Skip to main content

IAR Embedded Workbench for RX 5.20

bank

In this section:
Syntax
#pragma bank=bank_number
Parameters

bank_number

The number of one of the register banks (an integer)

Description

Use this pragma directive with an interrupt function to save the values of registers to the specified register bank at the start of the interrupt, and restore them again afterward. The SAVE and RSTR instructions will be used. This pragma directive requires that the compiler option --core=rxv3 has been specified.

Example
#pragma vector=5
#pragma bank=5
__interrupt void myInterrupt()
{
    do something here
}