The processing for when a reset (reset input) has been entered is written. In the RL78, upon receiving a reset, a branch is made to the address stored in the address (reset address) that has been determined by the device setting. Therefore, the start address of the startup routine should be set to the reset address. The code will be as follows.
The start of the startup routine is written as shown below.
The label of the start of the startup routine is set as "_start" in the example, but another name does not make any difference.