5.1.10 Substitute Register Names (for the PID Function)

The substitute register names listed below can be used instead of the names of general-purpose registers.

Table 5.29

Substitute Register Names

Substitute Register Name

Corresponding General-Purpose Register Name

__PID_R0

R0

__PID_R1

R1

__PID_R2

R2

__PID_R3

R3

__PID_R4

R4

__PID_R5

R5

__PID_R6

R6

__PID_R7

R7

__PID_R8

R8

__PID_R9

R9

__PID_R10

R10

__PID_R11

R11

__PID_R12

R12

__PID_R13

R13

__PID_R14

R14

__PID_R15

R15

__PID_REG

Register selected as the PID register *1

Note

*1) This indicates the name of the register selected as the PID register when the -pid or -nouse_pid_register option is specified. For details on the rules for selecting the PID register, refer to the descriptions of the -pid and -nouse_pid_register assembler options.

In assembly-language code that constitutes a master program in which the PID function is enabled, the names of all registers that may be selected as the PID register must be represented by the corresponding substitute register names (rather than the actual names of general-purpose registers such as R13).

When a substitute register name is selected as the PID register, assembling the program with nouse_pid_register enabled will not lead to an error.

 

[Remark]

Substitute register names are usable even when neither -nouse_pid_register nor the -pid option has been selected.