-Xresbank_mode [V2.00.00 or later]


This option specifies the operating mode of the resbank instruction.

[Specification format]

-Xresbank_mode=num

 

-

Interpretation when omitted

It has the same meaning as when -Xresbank_mode=0 is specified.

[Detailed description]

-

This option generates a code assuming that the resbank instruction will operate with the value specified in num being set in RBCR0.MD (register for specifying the save mode of the register bank).

-

0 or 1 can be specified for num. Specify the same value as that set in RBCR0.MD.

-

If this option is specified more than once, the last specification is valid.

-

If the specification of this option is changed for each source file, registers may not be correctly managed in exception handlers. The specification must be the same for all source files.

-

This option is valid only in an exception handler in which resbank was specified by the #pragma interrupt directive.

-

An error will occur in any of the following cases.

-

When num is omitted

-

When a value other than 0 or 1 is specified

-

When a parameter other than g4mh is specified in the -Xcpu option

[Remark]

Even though this option is specified, a code for setting a value to RBCR0.MD is not generated. The value must be directly set with the user program.